diff options
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.cpp')
-rw-r--r-- | src/mongo/db/s/collection_sharding_state.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.cpp b/src/mongo/db/s/collection_sharding_state.cpp index 24746d7880e..5b4b39cb33f 100644 --- a/src/mongo/db/s/collection_sharding_state.cpp +++ b/src/mongo/db/s/collection_sharding_state.cpp @@ -296,11 +296,6 @@ bool CollectionShardingState::_checkShardVersionOk(OperationContext* opCtx, ChunkVersion* actualShardVersion) { Client* client = opCtx->getClient(); - // Operations using the DBDirectClient are unversioned. - if (client->isInDirectClient()) { - return true; - } - if (!repl::ReplicationCoordinator::get(opCtx)->canAcceptWritesForDatabase(opCtx, _nss.db())) { // Right now connections to secondaries aren't versioned at all. return true; |