From bafdf4c440267d22bbf8052689fbcc4f1d0a123d Mon Sep 17 00:00:00 2001 From: Esha Maharishi Date: Wed, 4 Apr 2018 21:07:53 -0400 Subject: SERVER-34273 Bring database version checking out from under test flag --- src/mongo/db/s/database_sharding_state.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/mongo/db/s/database_sharding_state.cpp') 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::get = Database::declareDecoration(); @@ -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); -- cgit v1.2.1