1
0
Fork 0

catch exception

This commit is contained in:
Jan Steemann 2016-01-21 09:55:17 +01:00
parent f5f15a86d2
commit d03a8376a4
1 changed files with 10 additions and 2 deletions

View File

@ -2199,8 +2199,16 @@ static int IterateMarkersCollection(arangodb::Transaction* trx,
TRI_DestroyVector(&openState._operations);
// update the real statistics for the collection
for (auto& it : openState._stats) {
document->_datafileStatistics.create(it.first, *(it.second));
try {
for (auto& it : openState._stats) {
document->_datafileStatistics.create(it.first, *(it.second));
}
}
catch (basics::Exception const& ex) {
return ex.code();
}
catch (...) {
return TRI_ERROR_INTERNAL;
}
return TRI_ERROR_NO_ERROR;