summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/collection_to_capped.cpp
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-05-15 15:07:14 -0400
committerHari Khalsa <hkhalsa@10gen.com>2014-05-15 15:51:32 -0400
commita26f0197137e43e130ee7a8c5e42399f6ccd2005 (patch)
tree03b1b1b2b865e7a654d9c7bdf973df56fc8df150 /src/mongo/db/commands/collection_to_capped.cpp
parent9628f0418502a97aff046e9ae28bebdab4d6b9cd (diff)
downloadmongo-a26f0197137e43e130ee7a8c5e42399f6ccd2005.tar.gz
SERVER-13641 remove recovery unit passthroughs from operationcontext
Diffstat (limited to 'src/mongo/db/commands/collection_to_capped.cpp')
-rw-r--r--src/mongo/db/commands/collection_to_capped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/collection_to_capped.cpp b/src/mongo/db/commands/collection_to_capped.cpp
index 756569d806e..65cb87d165f 100644
--- a/src/mongo/db/commands/collection_to_capped.cpp
+++ b/src/mongo/db/commands/collection_to_capped.cpp
@@ -108,7 +108,7 @@ namespace mongo {
toCollection->insertDocument( txn, obj, true );
if ( logForReplication )
logOp( txn, "i", toNs.c_str(), obj );
- txn->commitIfNeeded();
+ txn->recoveryUnit()->commitIfNeeded();
}
}