diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-04-04 21:07:53 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-04-05 16:44:09 -0400 |
commit | bafdf4c440267d22bbf8052689fbcc4f1d0a123d (patch) | |
tree | af06b82e698c8c802409f1110e5e8a7cb644bd62 /src/mongo/db/s/database_sharding_state.cpp | |
parent | 3a8ea2566835098bcfc39a403a39db0dcbf64ba4 (diff) | |
download | mongo-bafdf4c440267d22bbf8052689fbcc4f1d0a123d.tar.gz |
SERVER-34273 Bring database version checking out from under test flag
Diffstat (limited to 'src/mongo/db/s/database_sharding_state.cpp')
-rw-r--r-- | src/mongo/db/s/database_sharding_state.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/s/database_sharding_state.cpp b/src/mongo/db/s/database_sharding_state.cpp index 8624bb0b7bc..7054e91f6c3 100644 --- a/src/mongo/db/s/database_sharding_state.cpp +++ b/src/mongo/db/s/database_sharding_state.cpp @@ -40,8 +40,6 @@ namespace mongo { -MONGO_FP_DECLARE(checkForDbVersionMismatch); - const Database::Decoration<DatabaseShardingState> DatabaseShardingState::get = Database::declareDecoration<DatabaseShardingState>(); @@ -92,12 +90,6 @@ void DatabaseShardingState::checkDbVersion(OperationContext* opCtx) const { return; } - if (!MONGO_FAIL_POINT(checkForDbVersionMismatch)) { - // While checking the dbVersion and triggering a cache refresh on StaleDbVersion is under - // development, only check for dbVersion mismatch if explicitly asked to. - return; - } - auto criticalSectionSignal = _critSec.getSignal(opCtx->lockState()->isWriteLocked() ? ShardingMigrationCriticalSection::kWrite : ShardingMigrationCriticalSection::kRead); |