1
0
Fork 0

coordinator would not always include rocksdb error message with error code (#9458)

This commit is contained in:
Matthew Von-Maszewski 2019-07-11 14:55:56 +02:00 committed by Jan
parent bc12ba12d2
commit f09ff46c65
1 changed files with 4 additions and 0 deletions

View File

@ -2081,6 +2081,10 @@ int ClusterInfo::ensureIndexCoordinatorInner(std::string const& databaseName,
auto rollbackEndTime = steady_clock::now() + std::chrono::seconds(10);
while (true) {
AgencyCommResult update = _agency.sendTransactionWithFailover(trx, 0.0);
{
CONDITION_LOCKER(locker, agencyCallback->_cv);
errorMsg = *errMsg; // default is "", but errors not covered below can populate
}
if (update.successful()) {
loadPlan();
if (tmpRes < 0) { // timeout