diff options
author | Benety Goh <benety@mongodb.com> | 2013-09-17 17:55:31 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2013-09-19 12:06:58 -0400 |
commit | b753f054d56b6c63c97db963b13a9bf57cf89c2d (patch) | |
tree | 903b53ff2d7785603bc03822579687a4abf2dc7d /src/mongo/db/exec/plan_stats.cpp | |
parent | e38ef3a34a3a1f8f7eef0592379578999c00032f (diff) | |
download | mongo-b753f054d56b6c63c97db963b13a9bf57cf89c2d.tar.gz |
SERVER-10565 added comment on unsigned conversion of internal counters
Diffstat (limited to 'src/mongo/db/exec/plan_stats.cpp')
-rw-r--r-- | src/mongo/db/exec/plan_stats.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/exec/plan_stats.cpp b/src/mongo/db/exec/plan_stats.cpp index a66d3f99da0..8c1ed8b711c 100644 --- a/src/mongo/db/exec/plan_stats.cpp +++ b/src/mongo/db/exec/plan_stats.cpp @@ -37,6 +37,7 @@ namespace mongo { if (NULL == bob) { return; } + // potential overflow because original counters are unsigned 64-bit values bob->append("works", static_cast<long long>(works)); bob->append("advanced", static_cast<long long>(advanced)); } |