1
0
Fork 0

Fix agency dump in dropCollection.

This commit is contained in:
Max Neunhoeffer 2016-10-20 09:35:51 +02:00
parent 4bf4c7f11a
commit c3de3ca792
1 changed files with 8 additions and 4 deletions

View File

@ -1172,8 +1172,8 @@ int ClusterInfo::createCollectionCoordinator(std::string const& databaseName,
<< "\ntransaction sent to agency: " << transaction.toJson();
AgencyCommResult ag = ac.getValues("");
if (ag.successful()) {
LOG_TOPIC(ERR, Logger::CLUSTER) << "Agency dump:\n"
<< ag.slice().toJson();
LOG_TOPIC(ERR, Logger::CLUSTER) << "Agency dump:\n"
<< ag.slice().toJson();
} else {
LOG_TOPIC(ERR, Logger::CLUSTER) << "Could not get agency dump!";
}
@ -1285,8 +1285,12 @@ int ClusterInfo::dropCollectionCoordinator(std::string const& databaseName,
<< ": database: " << databaseName << ", collId:" << collectionID
<< "\ntransaction sent to agency: " << trans.toJson();
AgencyCommResult ag = ac.getValues("");
LOG_TOPIC(ERR, Logger::CLUSTER) << "Agency dump:\n"
<< ag.slice().toJson();
if (ag.successful()) {
LOG_TOPIC(ERR, Logger::CLUSTER) << "Agency dump:\n"
<< ag.slice().toJson();
} else {
LOG_TOPIC(ERR, Logger::CLUSTER) << "Could not get agency dump!";
}
events::DropCollection(collectionID, TRI_ERROR_CLUSTER_TIMEOUT);
return setErrormsg(TRI_ERROR_CLUSTER_TIMEOUT, errorMsg);
}