diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-04-28 20:55:18 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-04-29 09:14:59 -0400 |
commit | de5ea8fd8682d086de86636d9fff80720939790e (patch) | |
tree | bc1ad8171f539a97333df978fbae16aa53a490f9 /src/mongo/dbtests/oplogstarttests.cpp | |
parent | a16b3afd4f6760a8818da0888ebd330e92d381a2 (diff) | |
download | mongo-de5ea8fd8682d086de86636d9fff80720939790e.tar.gz |
SERVER-13643 Move Txn pluming above Database and Collection
Diffstat (limited to 'src/mongo/dbtests/oplogstarttests.cpp')
-rw-r--r-- | src/mongo/dbtests/oplogstarttests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/oplogstarttests.cpp b/src/mongo/dbtests/oplogstarttests.cpp index 517ab307f09..c28103e30b0 100644 --- a/src/mongo/dbtests/oplogstarttests.cpp +++ b/src/mongo/dbtests/oplogstarttests.cpp @@ -30,6 +30,7 @@ #include "mongo/db/query/internal_runner.h" #include "mongo/db/repl/oplog.h" #include "mongo/db/repl/repl_settings.h" +#include "mongo/db/storage/mmap_v1/dur_transaction.h" #include "mongo/db/catalog/collection.h" #include "mongo/util/fail_point_service.h" @@ -40,9 +41,10 @@ namespace OplogStartTests { class Base { public: Base() : _context(ns()) { - Collection* c = _context.db()->getCollection(ns()); + DurTransaction txn; + Collection* c = _context.db()->getCollection(&txn, ns()); if (!c) { - c = _context.db()->createCollection(ns()); + c = _context.db()->createCollection(&txn, ns()); } c->getIndexCatalog()->ensureHaveIdIndex(); |