diff options
author | Martin Bligh <mbligh@mongodb.com> | 2015-08-31 10:28:50 -0400 |
---|---|---|
committer | Martin Bligh <mbligh@mongodb.com> | 2015-08-31 10:28:50 -0400 |
commit | 518118bfce4da06e6c26063e125f90e30a1b3baa (patch) | |
tree | 9ba3d467dd0d671cbda84548d05887ed96c0b2fe /src/mongo/db/stats/counters.cpp | |
parent | 2b209d7b214bee35b8890f33534254c7a94182f2 (diff) | |
download | mongo-518118bfce4da06e6c26063e125f90e30a1b3baa.tar.gz |
SERVER-20167: Flip stats counters to be signed (forgot const type)
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 7a906861482..7a7c7d7dd1f 100644 --- a/src/mongo/db/stats/counters.cpp +++ b/src/mongo/db/stats/counters.cpp @@ -136,7 +136,7 @@ BSONObj OpCounters::getObj() const { } void NetworkCounter::hit(long long bytesIn, long long bytesOut) { - const uint64_t MAX = 1ULL << 60; + const int64_t MAX = 1ULL << 60; // don't care about the race as its just a counter bool overflow = _bytesIn.loadRelaxed() > MAX || _bytesOut.loadRelaxed() > MAX; |