mirror of https://gitee.com/bigwinds/arangodb
catch exception
This commit is contained in:
parent
f5f15a86d2
commit
d03a8376a4
|
@ -2199,8 +2199,16 @@ static int IterateMarkersCollection(arangodb::Transaction* trx,
|
||||||
TRI_DestroyVector(&openState._operations);
|
TRI_DestroyVector(&openState._operations);
|
||||||
|
|
||||||
// update the real statistics for the collection
|
// update the real statistics for the collection
|
||||||
for (auto& it : openState._stats) {
|
try {
|
||||||
document->_datafileStatistics.create(it.first, *(it.second));
|
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;
|
return TRI_ERROR_NO_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue