diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-21 11:08:06 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-22 09:16:40 -0400 |
commit | 9123d2d3263ea56d8651ba9d4cf5ad1158d939cb (patch) | |
tree | bddf1cbf162fca2acb3312604c5949cce3941021 /src/mongo/dbtests/framework.cpp | |
parent | 416764e1c50f9c31ab9d9845d21b7d80062fee30 (diff) | |
download | mongo-9123d2d3263ea56d8651ba9d4cf5ad1158d939cb.tar.gz |
SERVER-18084 Remove usages of ShardingState::get(globalOperationContext())
So that call can be removed in place of the variant, which accepts
OperationContext.
Diffstat (limited to 'src/mongo/dbtests/framework.cpp')
-rw-r--r-- | src/mongo/dbtests/framework.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp index 93d95fe1c11..6a084185c9b 100644 --- a/src/mongo/dbtests/framework.cpp +++ b/src/mongo/dbtests/framework.cpp @@ -67,8 +67,9 @@ int runDbTests(int argc, char** argv) { { auto txn = cc().makeOperationContext(); + // Initialize the sharding state so we can run sharding tests in isolation - ShardingState::get(getGlobalServiceContext())->initialize(txn.get(), "$dummy:10000"); + ShardingState::get(txn.get())->initialize(txn.get(), "$dummy:10000"); } // Note: ShardingState::initialize also initializes the distLockMgr. |