summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/commands/write_commands/batch_executor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/write_commands/batch_executor.cpp b/src/mongo/db/commands/write_commands/batch_executor.cpp
index 7c6fd37d6bb..59684178f8e 100644
--- a/src/mongo/db/commands/write_commands/batch_executor.cpp
+++ b/src/mongo/db/commands/write_commands/batch_executor.cpp
@@ -929,7 +929,7 @@ namespace mongo {
ShardedConnectionInfo* info = ShardedConnectionInfo::get(false);
if (info) {
- auto rootRequest = updateItem.getRequest();
+ const BatchedCommandRequest* rootRequest = updateItem.getRequest();
if (!updateItem.getUpdate()->getMulti() &&
rootRequest->isMetadataSet() &&
rootRequest->getMetadata()->isShardVersionSet()) {
@@ -973,7 +973,7 @@ namespace mongo {
ShardedConnectionInfo* info = ShardedConnectionInfo::get(false);
if (info) {
- auto rootRequest = removeItem.getRequest();
+ const BatchedCommandRequest* rootRequest = removeItem.getRequest();
if (removeItem.getDelete()->getLimit() == 1 &&
rootRequest->isMetadataSet() &&
rootRequest->getMetadata()->isShardVersionSet()) {