1
0
Fork 0

Now properly fill the indexes when creating a new one. Also slight modifiaction of drop

This commit is contained in:
Michael Hackstein 2016-08-26 10:11:29 +02:00
parent 3c8b8933ed
commit b31cf711b9
2 changed files with 5 additions and 5 deletions

View File

@ -603,8 +603,10 @@ int LogicalCollection::close() {
}
void LogicalCollection::drop() {
TRI_ASSERT(!ServerState::instance()->isCoordinator());
StorageEngine* engine = EngineSelectorFeature::ENGINE;
engine->dropCollection(_vocbase, this);
_isDeleted = true;
// TODO Do we need to do more or does the Engine do it?
}
void LogicalCollection::setStatus(TRI_vocbase_col_status_e status) {
@ -901,9 +903,9 @@ std::shared_ptr<Index> LogicalCollection::createIndex(Transaction* trx,
break;
}
}
// TODO fillIndexes
addIndex(newIdx);
fillIndex(trx, newIdx.get(), false);
return newIdx;
}

View File

@ -285,9 +285,7 @@ bool TRI_vocbase_t::DropCollectionCallback(arangodb::LogicalCollection* collecti
} catch (...) {
}
}
StorageEngine* engine = EngineSelectorFeature::ENGINE;
engine->dropCollection(vocbase, collection);
collection->drop();
return true;
}