1
0
Fork 0

Indexes should now be unloaded on onload instead of deleted.

This commit is contained in:
Michael Hackstein 2016-08-26 14:15:09 +02:00
parent a31fe62c34
commit 957f20c4b5
2 changed files with 4 additions and 3 deletions

View File

@ -594,8 +594,10 @@ int LogicalCollection::close() {
_collection->_info.updateCount(idxSize);
}
// We also have to throw away the indexes.
_indexes.clear();
// We also have to unload the indexes.
for (auto& idx : _indexes) {
idx->unload();
}
_numberDocuments = 0;

View File

@ -329,7 +329,6 @@ arangodb::LogicalCollection* TRI_vocbase_t::createCollectionWorker(
// if an exception is caught, collection will be a nullptr
}
#warning
// FIXME
if (collection == nullptr) {
delete document;