diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2022-04-07 20:01:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-08 20:51:43 +0000 |
commit | 01948c4d502b61c4d34d5d91a6ed903ff305ea07 (patch) | |
tree | 80a467fec093a0d5d731b9862c986155b3b43b17 /src | |
parent | a90d7773ed0c8e134e7a68d17b0212d45d1b7e4c (diff) | |
download | mongo-01948c4d502b61c4d34d5d91a6ed903ff305ea07.tar.gz |
SERVER-60105 Record time-series writes to the global OpCounter
(cherry picked from commit 0e7af76ae586749bf71928963c857cb50f760b9b)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands/write_commands.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/write_commands.cpp b/src/mongo/db/commands/write_commands.cpp index 7a0a9f863da..6abe9815b9a 100644 --- a/src/mongo/db/commands/write_commands.cpp +++ b/src/mongo/db/commands/write_commands.cpp @@ -1323,6 +1323,7 @@ public: } curOp.debug().additiveMetrics.ninserted = baseReply.getN(); + globalOpCounters.gotInserts(baseReply.getN()); } }; } cmdInsert; |