diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2020-05-28 13:00:09 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-26 00:45:47 +0000 |
commit | b281adecd42a0d638d31acbf36a7affc5c0db3f9 (patch) | |
tree | 01a0feb4c08297a6563a942caeab8f7f12eef909 /src/mongo/s/mongos_topology_coordinator.h | |
parent | 341fb5d34695cb7d0994f5d91947355d60dabf36 (diff) | |
download | mongo-b281adecd42a0d638d31acbf36a7affc5c0db3f9.tar.gz |
SERVER-46962 Blacklist sync sources that are shutting down
Diffstat (limited to 'src/mongo/s/mongos_topology_coordinator.h')
-rw-r--r-- | src/mongo/s/mongos_topology_coordinator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_topology_coordinator.h b/src/mongo/s/mongos_topology_coordinator.h index 5278bf50c23..bb04306f33d 100644 --- a/src/mongo/s/mongos_topology_coordinator.h +++ b/src/mongo/s/mongos_topology_coordinator.h @@ -88,6 +88,11 @@ private: SharedPromise<std::shared_ptr<const MongosIsMasterResponse>>; /** + * Calculates the time (in millis) left in quiesce mode and converts the value to int64. + */ + long long _calculateRemainingQuiesceTimeMillis() const; + + /** * Helper for constructing a MongosIsMasterResponse. **/ std::shared_ptr<MongosIsMasterResponse> _makeIsMasterResponse(WithLock) const; @@ -107,6 +112,9 @@ private: // True if we're in quiesce mode. If true, we'll respond to isMaster requests with ok:0. bool _inQuiesceMode; // (M) + // The deadline until which quiesce mode will last. + Date_t _quiesceDeadline; // (M) + // The promise waited on by awaitable isMaster requests on mongos. std::shared_ptr<SharedPromiseOfMongosIsMasterResponse> _promise; // (M) }; |