diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-05 10:56:13 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-04-05 14:48:12 -0400 |
commit | ecf49da8e9ffad89119a661b882703417ee37dde (patch) | |
tree | dd913bb82b510d775c0bd0da621a52d35187ab50 /src/mongo/db/dbcommands.cpp | |
parent | 42cfa52297f1fc6d9fae8bb3bdf236389c800225 (diff) | |
download | mongo-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.cpp | 4 |
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); } |