summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/plan_cache_commands.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-10-09 12:22:08 -0400
committerIan Boros <ian.boros@10gen.com>2018-11-06 11:24:25 -0500
commit36d4668e854d8bd17e8b684dbbf42b3b0903bbe7 (patch)
tree4815a0b5a9b712c5fb93f59e6a57d4cd6f0ae2f7 /src/mongo/db/commands/plan_cache_commands.cpp
parenta090ee789498e709eef4c2d28bc1326070c1e67a (diff)
downloadmongo-36d4668e854d8bd17e8b684dbbf42b3b0903bbe7.tar.gz
SERVER-33303 Add stable plan cache key and use for index filters
Diffstat (limited to 'src/mongo/db/commands/plan_cache_commands.cpp')
-rw-r--r--src/mongo/db/commands/plan_cache_commands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/plan_cache_commands.cpp b/src/mongo/db/commands/plan_cache_commands.cpp
index ba189fa45bb..f2490831ca4 100644
--- a/src/mongo/db/commands/plan_cache_commands.cpp
+++ b/src/mongo/db/commands/plan_cache_commands.cpp
@@ -424,6 +424,7 @@ Status listPlansOriginalFormat(std::unique_ptr<CanonicalQuery> cq,
// Append the time the entry was inserted into the plan cache.
bob->append("timeOfCreation", entry->timeOfCreation);
bob->append("queryHash", unsignedIntToFixedLengthHex(entry->queryHash));
+ bob->append("planCacheKey", unsignedIntToFixedLengthHex(entry->planCacheKey));
// Append whether or not the entry is active.
bob->append("isActive", entry->isActive);
bob->append("works", static_cast<long long>(entry->works));