mirror of https://gitee.com/bigwinds/arangodb
Indexes should now be unloaded on onload instead of deleted.
This commit is contained in:
parent
a31fe62c34
commit
957f20c4b5
|
@ -594,8 +594,10 @@ int LogicalCollection::close() {
|
||||||
_collection->_info.updateCount(idxSize);
|
_collection->_info.updateCount(idxSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We also have to throw away the indexes.
|
// We also have to unload the indexes.
|
||||||
_indexes.clear();
|
for (auto& idx : _indexes) {
|
||||||
|
idx->unload();
|
||||||
|
}
|
||||||
|
|
||||||
_numberDocuments = 0;
|
_numberDocuments = 0;
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,6 @@ arangodb::LogicalCollection* TRI_vocbase_t::createCollectionWorker(
|
||||||
// if an exception is caught, collection will be a nullptr
|
// if an exception is caught, collection will be a nullptr
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning
|
|
||||||
// FIXME
|
// FIXME
|
||||||
if (collection == nullptr) {
|
if (collection == nullptr) {
|
||||||
delete document;
|
delete document;
|
||||||
|
|
Loading…
Reference in New Issue