summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/core/dbstats.js7
-rw-r--r--src/mongo/s/commands/cluster_db_stats_cmd.cpp15
2 files changed, 0 insertions, 22 deletions
diff --git a/jstests/core/dbstats.js b/jstests/core/dbstats.js
index 941ebb125b1..1a831e9ce42 100644
--- a/jstests/core/dbstats.js
+++ b/jstests/core/dbstats.js
@@ -52,13 +52,6 @@
assert(dbStats.hasOwnProperty("fsTotalSize"), tojson(dbStats));
}
- // Confirm extentFreeList field existence. Displayed for mongoS regardless of storage engine.
- if (isMongoS) {
- assert(dbStats.hasOwnProperty("extentFreeList"), tojson(dbStats));
- assert(dbStats.extentFreeList.hasOwnProperty("num"), tojson(dbStats));
- assert(dbStats.extentFreeList.hasOwnProperty("totalSize"), tojson(dbStats));
- }
-
// Confirm collection and view counts on mongoD
if (!isMongoS) {
assert.eq(testDB.getName(), dbStats.db, tojson(dbStats));
diff --git a/src/mongo/s/commands/cluster_db_stats_cmd.cpp b/src/mongo/s/commands/cluster_db_stats_cmd.cpp
index b40fb3dbd98..8314e5054c9 100644
--- a/src/mongo/s/commands/cluster_db_stats_cmd.cpp
+++ b/src/mongo/s/commands/cluster_db_stats_cmd.cpp
@@ -49,9 +49,6 @@ void aggregateResults(const std::vector<AsyncRequestsSender::Response>& response
long long indexSize = 0;
long long fileSize = 0;
- long long freeListNum = 0;
- long long freeListSize = 0;
-
for (const auto& response : responses) {
invariant(response.swResponse.getStatus().isOK());
const BSONObj& b = response.swResponse.getValue().data;
@@ -64,11 +61,6 @@ void aggregateResults(const std::vector<AsyncRequestsSender::Response>& response
indexes += b["indexes"].numberLong();
indexSize += b["indexSize"].numberLong();
fileSize += b["fileSize"].numberLong();
-
- if (b["extentFreeList"].isABSONObj()) {
- freeListNum += b["extentFreeList"].Obj()["num"].numberLong();
- freeListSize += b["extentFreeList"].Obj()["totalSize"].numberLong();
- }
}
// TODO SERVER-26110: Add aggregated 'collections' and 'views' metrics.
@@ -83,13 +75,6 @@ void aggregateResults(const std::vector<AsyncRequestsSender::Response>& response
output.appendNumber("indexes", indexes);
output.appendNumber("indexSize", indexSize);
output.appendNumber("fileSize", fileSize);
-
- {
- BSONObjBuilder extentFreeList(output.subobjStart("extentFreeList"));
- extentFreeList.appendNumber("num", freeListNum);
- extentFreeList.appendNumber("totalSize", freeListSize);
- extentFreeList.done();
- }
}
class DBStatsCmd : public ErrmsgCommandDeprecated {