summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats/counters.h
diff options
context:
space:
mode:
authorIrina Yatsenko <irina.yatsenko@mongodb.com>2022-08-03 05:02:22 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-03 05:56:12 +0000
commita64e8b26f542b3e3b3fd3b97fb6f46e8a378b74c (patch)
treee5f70225212a141decd144dae38f4498210edd1b /src/mongo/db/stats/counters.h
parentccddad0fd0ce788c9926416c61e518fb0e34086b (diff)
downloadmongo-a64e8b26f542b3e3b3fd3b97fb6f46e8a378b74c.tar.gz
SERVER-57384 Remove serverStatus counters and logging for deleted opcodes
Diffstat (limited to 'src/mongo/db/stats/counters.h')
-rw-r--r--src/mongo/db/stats/counters.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h
index 3c01c3eb626..0a6273e6fba 100644
--- a/src/mongo/db/stats/counters.h
+++ b/src/mongo/db/stats/counters.h
@@ -74,24 +74,9 @@ public:
_checkWrap(&OpCounters::_command, 1);
}
- void gotInsertsDeprecated(int n) {
- _checkWrap(&OpCounters::_insertDeprecated, n);
- }
void gotQueryDeprecated() {
_checkWrap(&OpCounters::_queryDeprecated, 1);
}
- void gotUpdateDeprecated() {
- _checkWrap(&OpCounters::_updateDeprecated, 1);
- }
- void gotDeleteDeprecated() {
- _checkWrap(&OpCounters::_deleteDeprecated, 1);
- }
- void gotGetMoreDeprecated() {
- _checkWrap(&OpCounters::_getmoreDeprecated, 1);
- }
- void gotKillCursorsDeprecated() {
- _checkWrap(&OpCounters::_killcursorsDeprecated, 1);
- }
BSONObj getObj() const;
@@ -165,13 +150,8 @@ private:
CacheExclusive<AtomicWord<long long>> _deleteFromMissingNamespace;
CacheExclusive<AtomicWord<long long>> _acceptableErrorInCommand;
- // Counters for deprecated opcodes.
- CacheExclusive<AtomicWord<long long>> _insertDeprecated;
+ // Counter for the deprecated OP_QUERY opcode.
CacheExclusive<AtomicWord<long long>> _queryDeprecated;
- CacheExclusive<AtomicWord<long long>> _updateDeprecated;
- CacheExclusive<AtomicWord<long long>> _deleteDeprecated;
- CacheExclusive<AtomicWord<long long>> _getmoreDeprecated;
- CacheExclusive<AtomicWord<long long>> _killcursorsDeprecated;
};
extern OpCounters globalOpCounters;