summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-06-24 15:51:26 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-06-29 21:49:51 -0400
commitbd7969fc8ae3510d0889982383d5db4a50e35790 (patch)
treefe3cc8701ee611f8270dc3c519034ec102f9b818 /src/mongo/s/client/shard.h
parent28be53c1c9721c4ef8a3046bb3546a1b63e759f6 (diff)
downloadmongo-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.h28
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;