summaryrefslogtreecommitdiff
path: root/src/mongo/base
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-12-19 22:47:25 -0500
committerEliot Horowitz <eliot@10gen.com>2012-12-19 22:47:25 -0500
commita266c93faa2bea00141b743a7dcd4635aa2d0b15 (patch)
tree996a6280901d8967397fda0f804eb1c27820d9bf /src/mongo/base
parentc49f0d43433ea41d16d27916aa119cbbb615e730 (diff)
downloadmongo-a266c93faa2bea00141b743a7dcd4635aa2d0b15.tar.gz
SERVER-7646 - track how many docs TTL deletes
Diffstat (limited to 'src/mongo/base')
-rw-r--r--src/mongo/base/counter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/base/counter.h b/src/mongo/base/counter.h
index 91508c98f67..c1c69b0cdb6 100644
--- a/src/mongo/base/counter.h
+++ b/src/mongo/base/counter.h
@@ -19,13 +19,14 @@
#pragma once
#include "mongo/platform/atomic_word.h"
+#include "mongo/platform/cstdint.h"
namespace mongo {
class Counter64 {
public:
- void increment() { _counter.addAndFetch(1); }
+ void increment( uint64_t n = 1 ) { _counter.addAndFetch(n); }
long long get() const { return _counter.load(); }