diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-06-24 15:51:26 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-06-29 21:49:51 -0400 |
commit | bd7969fc8ae3510d0889982383d5db4a50e35790 (patch) | |
tree | fe3cc8701ee611f8270dc3c519034ec102f9b818 /src/mongo/s/client/shard.h | |
parent | 28be53c1c9721c4ef8a3046bb3546a1b63e759f6 (diff) | |
download | mongo-bd7969fc8ae3510d0889982383d5db4a50e35790.tar.gz |
SERVER-19111 Get rid of ShardStatus
This change moves the "shard status" retrieval to common static functions
and gets rid of the ShardStatus function.
Diffstat (limited to 'src/mongo/s/client/shard.h')
-rw-r--r-- | src/mongo/s/client/shard.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/mongo/s/client/shard.h b/src/mongo/s/client/shard.h index d22e4d3fa83..c04ca1865dd 100644 --- a/src/mongo/s/client/shard.h +++ b/src/mongo/s/client/shard.h @@ -40,29 +40,6 @@ class RemoteCommandTargeter; using ShardId = std::string; -/** - * Contains runtime information obtained from the shard. - */ -class ShardStatus { -public: - ShardStatus(long long dataSizeBytes, const std::string& version); - - long long dataSizeBytes() const { - return _dataSizeBytes; - } - const std::string& mongoVersion() const { - return _mongoVersion; - } - - std::string toString() const; - - bool operator<(const ShardStatus& other) const; - -private: - long long _dataSizeBytes; - std::string _mongoVersion; -}; - class Shard; using ShardPtr = std::shared_ptr<Shard>; @@ -96,11 +73,6 @@ public: } /** - * Returns metadata and stats for this shard. - */ - ShardStatus getStatus() const; - - /** * Returns a string description of this shard entry. */ std::string toString() const; |