diff options
author | Sulabh Mahajan <sulabh.mahajan@mongodb.com> | 2023-01-16 10:31:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-16 12:24:15 +0000 |
commit | ab6b1c561d9f070125f7547820d76b14f3dc8427 (patch) | |
tree | 6c9f3d31fd8c3432a71dce53778b89ba37773f27 | |
parent | 291fc85952b0bace733817d233e99aeb25280667 (diff) | |
download | mongo-ab6b1c561d9f070125f7547820d76b14f3dc8427.tar.gz |
SERVER-68853 Remove invariant that a session stat needs to be a slow op stat
-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; |