diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2018-10-23 12:36:19 -0400 |
---|---|---|
committer | Jacob Evans <jacob.evans@10gen.com> | 2018-10-30 12:45:34 -0400 |
commit | 27d6f6977113551e0e3444b4f76c646d94e75a49 (patch) | |
tree | 1ed44811b1d74c6dfcbea884c64886620dcc8609 /src/mongo/db/stats/counters.cpp | |
parent | 6e33fadbe17b160f500a129c92235464ec5cd5b4 (diff) | |
download | mongo-27d6f6977113551e0e3444b4f76c646d94e75a49.tar.gz |
SERVER-14364 Make OpCounters 64-bit
Diffstat (limited to 'src/mongo/db/stats/counters.cpp')
-rw-r--r-- | src/mongo/db/stats/counters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/stats/counters.cpp b/src/mongo/db/stats/counters.cpp index af695566316..81a77016a8b 100644 --- a/src/mongo/db/stats/counters.cpp +++ b/src/mongo/db/stats/counters.cpp @@ -109,7 +109,7 @@ void OpCounters::gotOp(int op, bool isCommand) { } void OpCounters::_checkWrap() { - const unsigned MAX = 1 << 30; + const int64_t MAX = 1ULL << 60; bool wrap = _insert.loadRelaxed() > MAX || _query.loadRelaxed() > MAX || _update.loadRelaxed() > MAX || _delete.loadRelaxed() > MAX || |