diff options
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp index e637e906f32..7eab1f6c797 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp @@ -110,7 +110,10 @@ BSONObj WiredTigerOperationStats::toBSON() { for (auto const& stat : _stats) { // Find the user consumable name for this statistic. auto statIt = _statNameMap.find(stat.first); - invariant(statIt != _statNameMap.end()); + + // Ignore the session statistic that is not reported for the slow operations. + if (statIt == _statNameMap.end()) + continue; auto statName = statIt->second.first; Section subs = statIt->second.second; |