diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-09-25 18:27:47 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-10-19 17:43:02 -0400 |
commit | 9f363b489585124afa1e26412e19f6728763e1ad (patch) | |
tree | 58421f03eb2679d4d55174f8b32611731aed7e35 /src/mongo/s/commands/cluster_distinct_cmd.cpp | |
parent | 10934947f4a0e9fd83c256ed297f3a0a73c4d971 (diff) | |
download | mongo-9f363b489585124afa1e26412e19f6728763e1ad.tar.gz |
SERVER-37349 Later statements in a transaction should target shards using the global read timestamp
Diffstat (limited to 'src/mongo/s/commands/cluster_distinct_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_distinct_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_distinct_cmd.cpp b/src/mongo/s/commands/cluster_distinct_cmd.cpp index f0ddf09533e..679c51cdf3c 100644 --- a/src/mongo/s/commands/cluster_distinct_cmd.cpp +++ b/src/mongo/s/commands/cluster_distinct_cmd.cpp @@ -170,8 +170,7 @@ public: CollatorFactoryInterface::get(opCtx->getServiceContext())->makeFromBSON(collation)); } - const auto routingInfo = - uassertStatusOK(Grid::get(opCtx)->catalogCache()->getCollectionRoutingInfo(opCtx, nss)); + const auto routingInfo = uassertStatusOK(getCollectionRoutingInfoForTxnCmd(opCtx, nss)); std::vector<AsyncRequestsSender::Response> shardResponses; try { |