summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-10 17:51:28 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-14 09:09:26 -0400
commit3199feb9ab4a94962f7a45ff2262a18fe42ba7b4 (patch)
treec504fa5772bb37c2efed9b25f3e45d6afa73b3af /src/mongo/db/dbhelpers.cpp
parent190fa3eaaf0137336491d34914ff5da0ac5add13 (diff)
downloadmongo-3199feb9ab4a94962f7a45ff2262a18fe42ba7b4.tar.gz
SERVER-18084 Make ShardingState a decoration on ServiceContext
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r--src/mongo/db/dbhelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp
index 6618ef14b9b..d561b18beff 100644
--- a/src/mongo/db/dbhelpers.cpp
+++ b/src/mongo/db/dbhelpers.cpp
@@ -388,13 +388,13 @@ long long Helpers::removeRange(OperationContext* txn,
// We should never be able to turn off the sharding state once enabled, but
// in the future we might want to.
- verify(shardingState.enabled());
+ verify(ShardingState::get(getGlobalServiceContext())->enabled());
bool docIsOrphan;
// In write lock, so will be the most up-to-date version
std::shared_ptr<CollectionMetadata> metadataNow =
- shardingState.getCollectionMetadata(ns);
+ ShardingState::get(getGlobalServiceContext())->getCollectionMetadata(ns);
if (metadataNow) {
ShardKeyPattern kp(metadataNow->getKeyPattern());
BSONObj key = kp.extractShardKeyFromDoc(obj);