diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2021-07-26 14:26:00 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-29 08:20:46 +0000 |
commit | e81cb3762287d565644a96d2891d7d8ad820f1b0 (patch) | |
tree | 952364d65f9a12a22bf9b18ab04b139debeb1332 /src/mongo/s/grid.h | |
parent | e6814e16c2f31cf0fd8328ddd3809e485be60d65 (diff) | |
download | mongo-e81cb3762287d565644a96d2891d7d8ad820f1b0.tar.gz |
SERVER-50675 Get rid of Grid's configOpTime after 5.0 has branched out
Diffstat (limited to 'src/mongo/s/grid.h')
-rw-r--r-- | src/mongo/s/grid.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mongo/s/grid.h b/src/mongo/s/grid.h index ad5372d222f..81a765db38d 100644 --- a/src/mongo/s/grid.h +++ b/src/mongo/s/grid.h @@ -154,9 +154,7 @@ public: * If the config optime was updated, returns the previous value. * NOTE: This is not valid to call on a config server instance. */ - boost::optional<repl::OpTime> advanceConfigOpTime(OperationContext* opCtx, - repl::OpTime opTime, - StringData what); + void advanceConfigOpTime(OperationContext* opCtx, repl::OpTime opTime); /** * Clears the grid object so that it can be reused between test executions. This will not @@ -184,23 +182,11 @@ private: // questions about the network configuration, such as getting the current server's hostname. executor::NetworkInterface* _network{nullptr}; - CustomConnectionPoolStatsFn _customConnectionPoolStatsFn; - AtomicWord<bool> _shardingInitialized{false}; - // Protects _configOpTime. mutable Mutex _mutex = MONGO_MAKE_LATCH(HierarchicalAcquisitionLevel(0), "Grid::_mutex"); - // Last known highest opTime from the config server that should be used when doing reads. - // This value is updated any time a shard or mongos talks to a config server or a shard. - repl::OpTime _configOpTime; - - /** - * Called to update what we've seen as the last config server optime. - * If the config optime was updated, returns the previous value. - * NOTE: This is not valid to call on a config server instance. - */ - boost::optional<repl::OpTime> _advanceConfigOpTime(const repl::OpTime& opTime); + CustomConnectionPoolStatsFn _customConnectionPoolStatsFn; }; } // namespace mongo |