From 8ea72d1e0a9742a13eeb68f5639778cde14ea4cb Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Wed, 1 Apr 2015 22:45:20 -0400 Subject: SERVER-17805 logOp / OperationObserver should always check shardversion Edit backport for C++03 compatibility --- src/mongo/db/commands/write_commands/batch_executor.cpp | 4 ++-- 1 file 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()) { -- cgit v1.2.1