summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/plan_stats.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2013-09-17 17:55:31 -0400
committerBenety Goh <benety@mongodb.com>2013-09-19 12:06:58 -0400
commitb753f054d56b6c63c97db963b13a9bf57cf89c2d (patch)
tree903b53ff2d7785603bc03822579687a4abf2dc7d /src/mongo/db/exec/plan_stats.cpp
parente38ef3a34a3a1f8f7eef0592379578999c00032f (diff)
downloadmongo-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.cpp1
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));
}