diff options
Diffstat (limited to 'src/mongo/db/s/balancer/cluster_statistics.cpp')
-rw-r--r-- | src/mongo/db/s/balancer/cluster_statistics.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/s/balancer/cluster_statistics.cpp b/src/mongo/db/s/balancer/cluster_statistics.cpp index 125f11d3551..d51b4ec4a24 100644 --- a/src/mongo/db/s/balancer/cluster_statistics.cpp +++ b/src/mongo/db/s/balancer/cluster_statistics.cpp @@ -60,14 +60,6 @@ bool ClusterStatistics::ShardStatistics::isSizeMaxed() const { return currSizeMB >= maxSizeMB; } -bool ClusterStatistics::ShardStatistics::isSizeExceeded() const { - if (!maxSizeMB || !currSizeMB) { - return false; - } - - return currSizeMB > maxSizeMB; -} - BSONObj ClusterStatistics::ShardStatistics::toBSON() const { BSONObjBuilder builder; builder.append("id", shardId.toString()); |