diff options
author | Randolph Tan <randolph@10gen.com> | 2015-04-01 22:45:20 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2015-04-02 11:51:21 -0400 |
commit | 8ea72d1e0a9742a13eeb68f5639778cde14ea4cb (patch) | |
tree | 9acd9e60f4118471f6d11f2a632f828c2992b5a0 | |
parent | f93349f335d012ad383d9ad30d11478883e25ffd (diff) | |
download | mongo-8ea72d1e0a9742a13eeb68f5639778cde14ea4cb.tar.gz |
SERVER-17805 logOp / OperationObserver should always check shardversionr3.0.2-rc0
Edit backport for C++03 compatibility
-rw-r--r-- | src/mongo/db/commands/write_commands/batch_executor.cpp | 4 |
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()) { |