diff options
Diffstat (limited to 'src/mongo/db/repl/do_txn_test.cpp')
-rw-r--r-- | src/mongo/db/repl/do_txn_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/repl/do_txn_test.cpp b/src/mongo/db/repl/do_txn_test.cpp index c9d940ee485..ebc0e58500f 100644 --- a/src/mongo/db/repl/do_txn_test.cpp +++ b/src/mongo/db/repl/do_txn_test.cpp @@ -105,8 +105,7 @@ void DoTxnTest::setUp() { ASSERT_OK(replCoord->setFollowerMode(MemberState::RS_PRIMARY)); // Set up session catalog - SessionCatalog::reset_forTest(service); - SessionCatalog::create(service); + SessionCatalog::get(service)->reset_forTest(); SessionCatalog::get(service)->onStepUp(_opCtx.get()); // Need the OpObserverImpl in the registry in order for doTxn to work. |