summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-04-28 21:20:45 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-29 23:05:43 +0000
commitf674117136f9b2699ab42a32f6f08f6c0b5a84b3 (patch)
tree35bb9b210eafa2aff85568cd245100b3a8d4e245 /src/mongo/db/commands.h
parentf950ce6ca8e360becb502a09b7f371b2f2c807da (diff)
downloadmongo-f674117136f9b2699ab42a32f6f08f6c0b5a84b3.tar.gz
SERVER-47577: readConcernCounters metric in serverStatus
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index 37f85f0bd05..609371c6071 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -382,6 +382,14 @@ public:
}
/**
+ * Override and return true if the readConcernCounters in serverStatus should not be incremented
+ * on behalf of this command.
+ */
+ virtual bool shouldAffectReadConcernCounter() const {
+ return false;
+ }
+
+ /**
* Return true if the command requires auth.
*/
virtual bool requiresAuth() const {