summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbcommands.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-04-05 10:56:13 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-04-05 14:48:12 -0400
commitecf49da8e9ffad89119a661b882703417ee37dde (patch)
treedd913bb82b510d775c0bd0da621a52d35187ab50 /src/mongo/db/dbcommands.cpp
parent42cfa52297f1fc6d9fae8bb3bdf236389c800225 (diff)
downloadmongo-ecf49da8e9ffad89119a661b882703417ee37dde.tar.gz
SERVER-23479 move ownership of configOpTime to Grid
Diffstat (limited to 'src/mongo/db/dbcommands.cpp')
-rw-r--r--src/mongo/db/dbcommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/dbcommands.cpp b/src/mongo/db/dbcommands.cpp
index d3b665dbd95..8dc17ca1972 100644
--- a/src/mongo/db/dbcommands.cpp
+++ b/src/mongo/db/dbcommands.cpp
@@ -1330,7 +1330,7 @@ void Command::execCommand(OperationContext* txn,
BSONObj metadata = rpc::makeEmptyMetadata();
if (ShardingState::get(txn)->enabled()) {
- auto opTime = grid.shardRegistry()->getConfigOpTime();
+ auto opTime = grid.configOpTime();
BSONObjBuilder metadataBob;
rpc::ConfigServerMetadata(opTime).writeToMetadata(&metadataBob);
metadata = metadataBob.obj();
@@ -1482,7 +1482,7 @@ bool Command::run(OperationContext* txn,
}
if (isShardingAware) {
- auto opTime = grid.shardRegistry()->getConfigOpTime();
+ auto opTime = grid.configOpTime();
rpc::ConfigServerMetadata(opTime).writeToMetadata(&metadataBob);
}