diff options
author | Irina Yatsenko <irina.yatsenko@mongodb.com> | 2021-06-17 17:45:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-18 03:17:24 +0000 |
commit | ccb491cd781ce5273745dea42c4fc5651285a012 (patch) | |
tree | b29005ff20cd0b170ce9d4f7373b1e8a3d4cfc4d /src | |
parent | e0463ff305688f52db102f0cc605588e87daece4 (diff) | |
download | mongo-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.cpp | 7 |
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); } } |