summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/capped_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/capped_utils.cpp')
-rw-r--r--src/mongo/db/catalog/capped_utils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/capped_utils.cpp b/src/mongo/db/catalog/capped_utils.cpp
index d27d485a998..69bac1c04ff 100644
--- a/src/mongo/db/catalog/capped_utils.cpp
+++ b/src/mongo/db/catalog/capped_utils.cpp
@@ -214,8 +214,10 @@ mongo::Status mongo::cloneCollectionAsCapped(OperationContext* opCtx,
WriteUnitOfWork wunit(opCtx);
OpDebug* const nullOpDebug = nullptr;
- toCollection->insertDocument(
- opCtx, objToClone.value(), nullOpDebug, true, opCtx->writesAreReplicated());
+ toCollection
+ ->insertDocument(
+ opCtx, objToClone.value(), nullOpDebug, true, opCtx->writesAreReplicated())
+ .transitional_ignore();
wunit.commit();
// Go to the next document