1
0
Fork 0

do not reuse collection ids when restoring (#4218)

This commit is contained in:
Jan 2018-01-03 23:48:47 +01:00 committed by Max Neunhöffer
parent b876fc8371
commit 75953d69e8
1 changed files with 4 additions and 3 deletions

View File

@ -2451,10 +2451,11 @@ int RestReplicationHandler::createCollection(VPackSlice slice,
if (!name.empty() && name[0] == '_' && !slice.hasKey("isSystem")) {
// system collection?
patch.add("isSystem", VPackValue(true));
patch.add("objectId", VPackSlice::nullSlice());
patch.add("cid", VPackSlice::nullSlice());
patch.add("id", VPackSlice::nullSlice());
}
patch.add("objectId", VPackSlice::nullSlice());
patch.add("cid", VPackSlice::nullSlice());
patch.add("id", VPackSlice::nullSlice());
StorageEngine* engine = EngineSelectorFeature::ENGINE;
TRI_ASSERT(engine != nullptr);
engine->addParametersForNewCollection(patch, slice);