1
0
Fork 0

move useless string to where it belongs

This commit is contained in:
Andreas Streichardt 2017-04-27 15:04:08 +02:00
parent 42577df48d
commit 2f6c391d9b
1 changed files with 2 additions and 2 deletions

View File

@ -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", "");