summaryrefslogtreecommitdiff
path: root/src/mongo/client/sdam/server_description.h
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2020-05-08 12:01:45 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-13 18:04:47 +0000
commit4b32770c6e77225d3d5cbd46359cf905d0ecd216 (patch)
tree63add6841a068cda2eff69699e2bacce89a4e683 /src/mongo/client/sdam/server_description.h
parent6a3e51a10d1712662eb8c83ccad8f06c1d4741b3 (diff)
downloadmongo-4b32770c6e77225d3d5cbd46359cf905d0ecd216.tar.gz
SERVER-48040 Remove 'streamable' and 'poolResetCounter' from ServerDescription
Diffstat (limited to 'src/mongo/client/sdam/server_description.h')
-rw-r--r--src/mongo/client/sdam/server_description.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/client/sdam/server_description.h b/src/mongo/client/sdam/server_description.h
index 8ae5d88933e..c7a89626414 100644
--- a/src/mongo/client/sdam/server_description.h
+++ b/src/mongo/client/sdam/server_description.h
@@ -60,8 +60,7 @@ public:
ServerDescription(ClockSource* clockSource,
const IsMasterOutcome& isMasterOutcome,
boost::optional<IsMasterRTT> lastRtt = boost::none,
- boost::optional<TopologyVersion> topologyVersion = boost::none,
- boost::optional<int> poolResetCounter = boost::none);
+ boost::optional<TopologyVersion> topologyVersion = boost::none);
/**
* This determines if a server description is equivalent according to the Server Discovery and
@@ -82,13 +81,11 @@ public:
const boost::optional<std::string>& getError() const;
const boost::optional<IsMasterRTT>& getRtt() const;
const boost::optional<int>& getLogicalSessionTimeoutMinutes() const;
- int getPoolResetCounter();
// server capabilities
int getMinWireVersion() const;
int getMaxWireVersion() const;
bool isDataBearingServer() const;
- bool isStreamable() const;
// server 'time'
const Date_t getLastUpdateTime() const;
@@ -128,7 +125,6 @@ private:
void saveTags(BSONObj tagsObj);
void saveElectionId(BSONElement electionId);
void saveTopologyVersion(BSONElement topologyVersionField);
- void saveStreamable(BSONElement streamableField);
static inline const std::string kIsDbGrid = "isdbgrid";
static inline const double kRttAlpha = 0.2;
@@ -197,13 +193,6 @@ private:
// (=) logicalSessionTimeoutMinutes: integer or null. Default null.
boost::optional<int> _logicalSessionTimeoutMinutes;
- // (=) streamable: whether this server can stream isMaster responses. Default false.
- bool _streamable = false;
-
- // (=) poolResetCounter: integer, default 0. Initialized when client first creates connection
- // pool for server. Incremented on network error or timeout.
- int _poolResetCounter = 0;
-
// The topology description of that we are a part of. Since this is a weak_ptr, code that
// accesses this variable should ensure that the TopologyDescription cannot be destroyed by
// holding a copy of it's shared_ptr. The SdamServerSelector uses this variable when calculating