diff options
author | Mathias Stearn <mathias@10gen.com> | 2016-04-07 18:34:44 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2016-04-21 18:58:41 -0400 |
commit | d819ac65d1a0f941bd3e201f343ac04e252c4442 (patch) | |
tree | a531131c01f3816094d34cd845cfd71aec2e3459 /src/mongo/db/stats | |
parent | a7a593da31a944c90d7c5f0422eeee8264eb438d (diff) | |
download | mongo-d819ac65d1a0f941bd3e201f343ac04e252c4442.tar.gz |
SERVER-23128 Refactor mongod write operations
Now both write commands and legacy writes share an implementation.
Diffstat (limited to 'src/mongo/db/stats')
-rw-r--r-- | src/mongo/db/stats/counters.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/stats/counters.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/stats/counters.cpp b/src/mongo/db/stats/counters.cpp index 7a7c7d7dd1f..61b5be912dd 100644 --- a/src/mongo/db/stats/counters.cpp +++ b/src/mongo/db/stats/counters.cpp @@ -43,7 +43,7 @@ using std::endl; OpCounters::OpCounters() {} -void OpCounters::incInsertInWriteLock(int n) { +void OpCounters::gotInserts(int n) { RARELY _checkWrap(); _insert.fetchAndAdd(n); } diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h index 717724b8465..cae0cb0ad16 100644 --- a/src/mongo/db/stats/counters.h +++ b/src/mongo/db/stats/counters.h @@ -45,7 +45,7 @@ namespace mongo { class OpCounters { public: OpCounters(); - void incInsertInWriteLock(int n); + void gotInserts(int n); void gotInsert(); void gotQuery(); void gotUpdate(); |