diff options
-rw-r--r-- | src/mongo/db/s/shard_server_op_observer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/s/shard_server_op_observer.cpp b/src/mongo/db/s/shard_server_op_observer.cpp index a9f8d1954e7..c60fab48906 100644 --- a/src/mongo/db/s/shard_server_op_observer.cpp +++ b/src/mongo/db/s/shard_server_op_observer.cpp @@ -247,6 +247,10 @@ void ShardServerOpObserver::onInserts(OperationContext* opCtx, } if (nss == NamespaceString::kRangeDeletionNamespace) { + if (!isStandaloneOrPrimary(opCtx)) { + return; + } + auto deletionTask = RangeDeletionTask::parse( IDLParserErrorContext("ShardServerOpObserver"), insertedDoc); |