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); _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;

View File

@ -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;