diff options
-rw-r--r-- | src/mongo/db/catalog/catalog_stats.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/catalog/catalog_stats.cpp b/src/mongo/db/catalog/catalog_stats.cpp index 8bda32d82fa..0b50c555c1e 100644 --- a/src/mongo/db/catalog/catalog_stats.cpp +++ b/src/mongo/db/catalog/catalog_stats.cpp @@ -71,13 +71,6 @@ public: BSONObj generateSection(OperationContext* opCtx, const BSONElement& configElement) const override { - Lock::GlobalLock lk( - opCtx, LockMode::MODE_IS, Date_t::now(), Lock::InterruptBehavior::kLeaveUnlocked); - if (!lk.isLocked()) { - LOGV2_DEBUG(5906500, 2, "Failed to retrieve catalogStats statistics"); - return BSONObj(); - } - Stats stats; const auto catalog = CollectionCatalog::get(opCtx); |