8000 cppcheck · aa10000/arangodb@4f46fbe · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f46fbe

Browse files
committed
cppcheck
1 parent 5c868d0 commit 4f46fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arangod/Agency/MoveShard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ bool MoveShard::create() {
7676
_jb->openObject();
7777

7878
// Lookup from server
79-
if (_from.find("DBServer") == 0) {
79+
if (_from.compare("DBServer") == 0) {
8080
try {
8181
_from = uuidLookup(_snapshot, _from);
8282
} catch (...) {
8383
LOG_TOPIC(ERR, Logger::AGENCY) <<
8484
"MoveShard: From server " << _from << " does not exist";
8585
}
8686
}
87-
if (_to.find("DBServer") == 0) {
87+
if (_to.compare("DBServer") == 0) {
8888
try {
8989
_to = uuidLookup(_snapshot, _to);
9090
} catch (...) {

0 commit comments

Comments
 (0)
0