summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-11-23 16:56:37 -0500
committerSpencer T Brody <spencer@mongodb.com>2015-11-24 15:54:45 -0500
commit3b3ef4253a6c5d5d3f18127ac2272a9696488aec (patch)
treeda41cacce7c7baa8bd0960bfb68bae950acad474 /src/mongo/db
parent0377c359a6f105ecbec54a7723590235a4e86998 (diff)
downloadmongo-3b3ef4253a6c5d5d3f18127ac2272a9696488aec.tar.gz
SERVER-21603 Revert to old format for gleStats if being talked to by an old mongosr3.2.0-rc4
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/dbcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbcommands.cpp b/src/mongo/db/dbcommands.cpp
index f328296e347..f73b0a186dd 100644
--- a/src/mongo/db/dbcommands.cpp
+++ b/src/mongo/db/dbcommands.cpp
@@ -1446,7 +1446,7 @@ bool Command::run(OperationContext* txn,
// TODO: refactor out of here as part of SERVER-18326
if (isShardingAware || serverGlobalParams.configsvr) {
rpc::ShardingMetadata(lastOpTimeFromClient, replCoord->getElectionId())
- .writeToMetadata(&metadataBob);
+ .writeToMetadata(&metadataBob, request.getProtocol());
}
}