mirror of https://gitee.com/bigwinds/arangodb
do not reuse collection ids when restoring (#4218)
This commit is contained in:
parent
b876fc8371
commit
75953d69e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue