summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-08-08 11:53:07 -0400
committerDavid Storch <david.storch@10gen.com>2018-08-09 15:54:07 -0400
commit8c2cd4720c59dae92c2b284efaec0f88a08b797a (patch)
tree577997444fde6fa034af5db89c83672cbb53c2ce /src/mongo/db/commands
parentfc758e567998b87a2360c1c49e3bd0b74da3796b (diff)
downloadmongo-8c2cd4720c59dae92c2b284efaec0f88a08b797a.tar.gz
SERVER-35980 Delete PlanCacheEntryFeedback.
This type was only used to house the score of the plan and thus was not needed. We are removing it in advance of planned format changes for the planCacheListPlans command.
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/plan_cache_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/plan_cache_commands.cpp b/src/mongo/db/commands/plan_cache_commands.cpp
index 1210588d066..3c1d6a00a6a 100644
--- a/src/mongo/db/commands/plan_cache_commands.cpp
+++ b/src/mongo/db/commands/plan_cache_commands.cpp
@@ -425,7 +425,7 @@ Status PlanCacheListPlans::list(OperationContext* opCtx,
BSONArrayBuilder scoresBob(feedbackBob.subarrayStart("scores"));
for (size_t i = 0; i < entry->feedback.size(); ++i) {
BSONObjBuilder scoreBob(scoresBob.subobjStart());
- scoreBob.append("score", entry->feedback[i]->score);
+ scoreBob.append("score", entry->feedback[i]);
}
scoresBob.doneFast();
}