1
0
Fork 0

more verbose index find failures

This commit is contained in:
Kaveh Vahedipour 2017-05-18 16:50:15 +02:00
parent d51a6cb173
commit 74d11bf522
1 changed files with 18 additions and 0 deletions

View File

@ -2094,6 +2094,15 @@ int ClusterInfo::dropIndexCoordinator(std::string const& databaseName,
indexes = tmp.slice();
if (!indexes.isArray()) {
try {
LOG_TOPIC(WARN, Logger::CLUSTER)
<< "Failed to find index " << databaseName << "/" << collectionID
<< "/" << iid << " - " << indexes.toJson();
} catch (std::exception const& e) {
LOG_TOPIC(WARN, Logger::CLUSTER)
<< "Failed to find index " << databaseName << "/" << collectionID
<< "/" << iid << " - " << e.what();
}
// no indexes present, so we can't delete our index
return setErrormsg(TRI_ERROR_ARANGO_INDEX_NOT_FOUND, errorMsg);
}
@ -2128,6 +2137,15 @@ int ClusterInfo::dropIndexCoordinator(std::string const& databaseName,
}
}
if (!found) {
try {
LOG_TOPIC(WARN, Logger::CLUSTER)
<< "Failed to find index " << databaseName << "/" << collectionID
<< "/" << iid << " - " << indexes.toJson();
} catch (std::exception const& e) {
LOG_TOPIC(WARN, Logger::CLUSTER)
<< "Failed to find index " << databaseName << "/" << collectionID
<< "/" << iid << " - " << e.what();
}
return setErrormsg(TRI_ERROR_ARANGO_INDEX_NOT_FOUND, errorMsg);
}