mirror of https://gitee.com/bigwinds/arangodb
cppcheck
This commit is contained in:
parent
5c868d05dc
commit
4f46fbe239
|
@ -76,7 +76,7 @@ bool MoveShard::create() {
|
||||||
_jb->openObject();
|
_jb->openObject();
|
||||||
|
|
||||||
// Lookup from server
|
// Lookup from server
|
||||||
if (_from.find("DBServer") == 0) {
|
if (_from.compare("DBServer") == 0) {
|
||||||
try {
|
try {
|
||||||
_from = uuidLookup(_snapshot, _from);
|
_from = uuidLookup(_snapshot, _from);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
@ -84,7 +84,7 @@ bool MoveShard::create() {
|
||||||
"MoveShard: From server " << _from << " does not exist";
|
"MoveShard: From server " << _from << " does not exist";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_to.find("DBServer") == 0) {
|
if (_to.compare("DBServer") == 0) {
|
||||||
try {
|
try {
|
||||||
_to = uuidLookup(_snapshot, _to);
|
_to = uuidLookup(_snapshot, _to);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
Loading…
Reference in New Issue