diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2021-03-24 09:47:09 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-24 18:41:04 +0000 |
commit | 7c850a9595c4cc1a719c93f9328920645f9e5ff8 (patch) | |
tree | bc599867bd2270d2da2f34ca51c9929e23d968dd /src/mongo/db/repl/storage_interface_impl.cpp | |
parent | d18d6234db7e647b0615df8de01a027df151a97d (diff) | |
download | mongo-7c850a9595c4cc1a719c93f9328920645f9e5ff8.tar.gz |
SERVER-51334: Only allow the temporary resharding collection on FCV 4.7+
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 6a3c13df976..4bc7a881232 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -220,6 +220,7 @@ StorageInterfaceImpl::createCollectionForBulkLoading( Client::setCurrent( getGlobalServiceContext()->makeClient(str::stream() << nss.ns() << " loader")); auto opCtx = cc().makeOperationContext(); + opCtx->setEnforceConstraints(false); // DocumentValidationSettings::kDisableInternalValidation is currently inert. // But, it's logically ok to disable internal validation as this function gets called |