diff options
-rw-r--r-- | src/mongo/db/s/shardsvr_shard_collection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/shardsvr_shard_collection.cpp b/src/mongo/db/s/shardsvr_shard_collection.cpp index a4afb846ad6..1b5ecd0cac2 100644 --- a/src/mongo/db/s/shardsvr_shard_collection.cpp +++ b/src/mongo/db/s/shardsvr_shard_collection.cpp @@ -371,7 +371,8 @@ void checkForExistingChunks(OperationContext* opCtx, const NamespaceString& nss) // Use readConcern local to guarantee we see any chunks that have been written and may // become committed; readConcern majority will not see the chunks if they have not made it // to the majority snapshot. - repl::ReadConcernArgs readConcern(repl::ReadConcernLevel::kLocalReadConcern); + repl::ReadConcernArgs readConcern(Grid::get(opCtx)->configOpTime(), + repl::ReadConcernLevel::kMajorityReadConcern); readConcern.appendInfo(&countBuilder); auto cmdResponse = uassertStatusOK( |