mirror of https://gitee.com/bigwinds/arangodb
move useless string to where it belongs
This commit is contained in:
parent
42577df48d
commit
2f6c391d9b
|
@ -1100,11 +1100,11 @@ int ClusterInfo::createCollectionCoordinator(std::string const& databaseName,
|
|||
std::function<bool(VPackSlice const& result)> dbServerChanged =
|
||||
[=](VPackSlice const& result) {
|
||||
if (result.isObject() && result.length() == (size_t)numberOfShards) {
|
||||
std::string tmpMsg = "";
|
||||
|
||||
for (auto const& p : VPackObjectIterator(result)) {
|
||||
if (arangodb::basics::VelocyPackHelper::getBooleanValue(
|
||||
p.value, "error", false)) {
|
||||
std::string tmpMsg = "";
|
||||
|
||||
tmpMsg += " shardID:" + p.key.copyString() + ":";
|
||||
tmpMsg += arangodb::basics::VelocyPackHelper::getStringValue(
|
||||
p.value, "errorMessage", "");
|
||||
|
|
Loading…
Reference in New Issue