diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-07-10 17:51:28 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-07-14 09:09:26 -0400 |
commit | 3199feb9ab4a94962f7a45ff2262a18fe42ba7b4 (patch) | |
tree | c504fa5772bb37c2efed9b25f3e45d6afa73b3af /src/mongo/dbtests/framework.cpp | |
parent | 190fa3eaaf0137336491d34914ff5da0ac5add13 (diff) | |
download | mongo-3199feb9ab4a94962f7a45ff2262a18fe42ba7b4.tar.gz |
SERVER-18084 Make ShardingState a decoration on ServiceContext
Diffstat (limited to 'src/mongo/dbtests/framework.cpp')
-rw-r--r-- | src/mongo/dbtests/framework.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp index 944b39c5056..5691f490c45 100644 --- a/src/mongo/dbtests/framework.cpp +++ b/src/mongo/dbtests/framework.cpp @@ -119,7 +119,7 @@ int runDbTests(int argc, char** argv) { getGlobalServiceContext()->initializeGlobalStorageEngine(); // Initialize the sharding state so we can run starding tests in isolation - shardingState.initialize("$dummy:10000"); + ShardingState::get(getGlobalServiceContext())->initialize("$dummy:10000"); // Note: ShardingState::initialize also initializes the distLockMgr. auto distLockMgr = |