mirror of https://gitee.com/bigwinds/arangodb
Now properly fill the indexes when creating a new one. Also slight modifiaction of drop
This commit is contained in:
parent
3c8b8933ed
commit
b31cf711b9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue