diff options
author | XueruiFa <xuerui.fa@mongodb.com> | 2020-07-16 18:03:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-29 15:23:07 +0000 |
commit | 7b910aba3c500839692d142b4c64560b1fc2f29b (patch) | |
tree | f56189478f203aac17cbe9d10bf91b1969653155 /src/mongo/s/query/store_possible_cursor.cpp | |
parent | 4b880132b11c16a4a0cba4e5c3ce77892dd01f7c (diff) | |
download | mongo-7b910aba3c500839692d142b4c64560b1fc2f29b.tar.gz |
SERVER-49376: Ensure cursors inherit API settings of the initiating command
Diffstat (limited to 'src/mongo/s/query/store_possible_cursor.cpp')
-rw-r--r-- | src/mongo/s/query/store_possible_cursor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/query/store_possible_cursor.cpp b/src/mongo/s/query/store_possible_cursor.cpp index b76a47cddbe..6b6391dbb27 100644 --- a/src/mongo/s/query/store_possible_cursor.cpp +++ b/src/mongo/s/query/store_possible_cursor.cpp @@ -99,8 +99,10 @@ StatusWith<BSONObj> storePossibleCursor(OperationContext* opCtx, return cmdResult; } - ClusterClientCursorParams params( - incomingCursorResponse.getValue().getNSS(), boost::none, ReadConcernArgs::get(opCtx)); + ClusterClientCursorParams params(incomingCursorResponse.getValue().getNSS(), + APIParameters::get(opCtx), + boost::none, + ReadConcernArgs::get(opCtx)); params.remotes.emplace_back(); auto& remoteCursor = params.remotes.back(); remoteCursor.setShardId(shardId.toString()); |