summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIrina Yatsenko <irina.yatsenko@mongodb.com>2021-06-17 17:45:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-18 03:17:24 +0000
commitccb491cd781ce5273745dea42c4fc5651285a012 (patch)
treeb29005ff20cd0b170ce9d4f7373b1e8a3d4cfc4d /src
parente0463ff305688f52db102f0cc605588e87daece4 (diff)
downloadmongo-ccb491cd781ce5273745dea42c4fc5651285a012.tar.gz
SERVER-57768 Reset deprecated opcounters on wrap
(cherry picked from commit 0ee91c815a2f6753ecd93b42bc0b4c28c0485d3e)
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/stats/counters.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/stats/counters.cpp b/src/mongo/db/stats/counters.cpp
index 2353c9d7d8e..d8168112ba9 100644
--- a/src/mongo/db/stats/counters.cpp
+++ b/src/mongo/db/stats/counters.cpp
@@ -49,6 +49,13 @@ void OpCounters::_checkWrap(CacheAligned<AtomicWord<long long>> OpCounters::*cou
_delete.store(0);
_getmore.store(0);
_command.store(0);
+
+ _insertDeprecated.store(0);
+ _queryDeprecated.store(0);
+ _updateDeprecated.store(0);
+ _deleteDeprecated.store(0);
+ _getmoreDeprecated.store(0);
+ _killcursorsDeprecated.store(0);
}
}