diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-11-11 11:50:24 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-11 17:19:50 +0000 |
commit | 90cfa3eeb18000ca3081e83be66ca4eaa244665e (patch) | |
tree | 85370139d47ee14edb28b392b35a7adb0ca1ae17 /src/mongo/db/commands.cpp | |
parent | a9cf882445d4fd2775f40910d3087b483c3702e0 (diff) | |
download | mongo-90cfa3eeb18000ca3081e83be66ca4eaa244665e.tar.gz |
SERVER-51848 Rename generic arg/reply functions
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 920c43113a2..65233e75a94 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -467,7 +467,7 @@ void CommandHelpers::filterCommandRequestForPassthrough(BSONObjIterator* cmdIter BSONObjBuilder(requestBuilder->subobjStart("$queryOptions")).append(elem); continue; } - if (isRequestStripArgument(name)) + if (!shouldForwardToShards(name)) continue; requestBuilder->append(elem); } @@ -477,7 +477,7 @@ void CommandHelpers::filterCommandReplyForPassthrough(const BSONObj& cmdObj, BSONObjBuilder* output) { for (auto elem : cmdObj) { const auto name = elem.fieldNameStringData(); - if (isReplyStripArgument(name)) + if (!shouldForwardFromShards(name)) continue; output->append(elem); } |