diff options
author | Randolph Tan <randolph@10gen.com> | 2019-06-18 14:29:46 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2019-06-27 14:08:59 -0400 |
commit | 0d07bf5e7a72a5bce3f7d7d681a71d7ecfe7eb8c (patch) | |
tree | 6316b1ceee6a890fe075873bb8af853ba37dc750 /src/mongo/db/commands/mr.cpp | |
parent | d6834482ef9bbca8fd81e82483dedde965de9574 (diff) | |
download | mongo-0d07bf5e7a72a5bce3f7d7d681a71d7ecfe7eb8c.tar.gz |
SERVER-40258 Relax locking requirements for sharding metadata refresh on shards
Diffstat (limited to 'src/mongo/db/commands/mr.cpp')
-rw-r--r-- | src/mongo/db/commands/mr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/mr.cpp b/src/mongo/db/commands/mr.cpp index 19276846563..e4bc431be5e 100644 --- a/src/mongo/db/commands/mr.cpp +++ b/src/mongo/db/commands/mr.cpp @@ -1460,7 +1460,7 @@ public: const auto metadata = [&] { AutoGetCollectionForReadCommand autoColl(opCtx, config.nss); - return CollectionShardingState::get(opCtx, config.nss)->getCurrentMetadata(); + return CollectionShardingState::get(opCtx, config.nss)->getOrphansFilter(opCtx); }(); bool shouldHaveData = false; |