summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/plan_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/plan_stats.cpp')
-rw-r--r--src/mongo/db/exec/plan_stats.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mongo/db/exec/plan_stats.cpp b/src/mongo/db/exec/plan_stats.cpp
index bf079a7113a..0eb3c69b6f2 100644
--- a/src/mongo/db/exec/plan_stats.cpp
+++ b/src/mongo/db/exec/plan_stats.cpp
@@ -31,19 +31,19 @@
namespace mongo {
- void CommonStats::writeExplainTo(BSONObjBuilder* bob) const {
- 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));
+void CommonStats::writeExplainTo(BSONObjBuilder* bob) const {
+ 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));
+}
- // forward to CommonStats for now
- // TODO: fill in specific stats
- void PlanStageStats::writeExplainTo(BSONObjBuilder* bob) const {
- common.writeExplainTo(bob);
- }
+// forward to CommonStats for now
+// TODO: fill in specific stats
+void PlanStageStats::writeExplainTo(BSONObjBuilder* bob) const {
+ common.writeExplainTo(bob);
+}
} // namespace mongo