diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-07-08 15:56:16 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-07-09 20:37:24 -0400 |
commit | 678f6f9df2d72db7060d4fff412886298f7a97af (patch) | |
tree | df1720dccb69b87ce7890fd4598a61e15bae773a /src | |
parent | 1be7ba53b01be6d44e133e3e0f0ecc242628eb19 (diff) | |
download | mongo-678f6f9df2d72db7060d4fff412886298f7a97af.tar.gz |
SERVER-49366 Allow presence of 'recordPreImages' in collection metadata in standalone mode
(cherry picked from commit bf3b9a1e6d52dddbb9ed85c113d613ffbc866e13)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/catalog/collection_impl.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp index 0e02b848366..5071257bef0 100644 --- a/src/mongo/db/catalog/collection_impl.cpp +++ b/src/mongo/db/catalog/collection_impl.cpp @@ -238,12 +238,6 @@ Status validatePreImageRecording(OperationContext* opCtx, const NamespaceString& "recordPreImages collection option is not supported on shards or config servers"}; } - auto replCoord = repl::ReplicationCoordinator::get(opCtx); - if (!replCoord->isReplEnabled()) { - return {ErrorCodes::InvalidOptions, - "recordPreImages collection option depends on being in a replica set"}; - } - return Status::OK(); } |