diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/stats/storage_stats.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/stats/storage_stats.cpp b/src/mongo/db/stats/storage_stats.cpp index 88ab2323839..8b290ed2d95 100644 --- a/src/mongo/db/stats/storage_stats.cpp +++ b/src/mongo/db/stats/storage_stats.cpp @@ -65,6 +65,7 @@ Status appendCollectionStorageStats(OperationContext* opCtx, result->appendNumber("totalIndexSize", 0); result->append("indexDetails", BSONObj()); result->append("indexSizes", BSONObj()); + result->append("scaleFactor", scale); std::string errmsg = !(ctx.getDb()) ? "Database [" + nss.db().toString() + "] not found." : "Collection [" + nss.toString() + "] not found."; return {ErrorCodes::NamespaceNotFound, errmsg}; @@ -117,6 +118,7 @@ Status appendCollectionStorageStats(OperationContext* opCtx, result->appendNumber("totalIndexSize", indexSize / scale); result->append("indexSizes", indexSizes.obj()); + result->append("scaleFactor", scale); return Status::OK(); } |