summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/rename_collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/rename_collection.cpp')
-rw-r--r--src/mongo/db/catalog/rename_collection.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/rename_collection.cpp b/src/mongo/db/catalog/rename_collection.cpp
index 0f4a7fcea93..8d7e315cb25 100644
--- a/src/mongo/db/catalog/rename_collection.cpp
+++ b/src/mongo/db/catalog/rename_collection.cpp
@@ -206,10 +206,6 @@ Status renameCollectionDirectly(OperationContext* opCtx,
return status;
}
- // Rename is not resilient to interruption when the onRenameCollection OpObserver
- // takes an oplog collection lock.
- UninterruptibleLockGuard noInterrupt(opCtx->lockState());
-
// We have to override the provided 'dropTarget' setting for idempotency reasons to
// avoid unintentionally removing a collection on a secondary with the same name as
// the target.