summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/plan_cache_memory_debug_info.js
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2022-04-07 09:12:51 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-07 10:08:29 +0000
commita9d10207448a5d1eeb7a6997cd298213c3e5c424 (patch)
tree3edbdf39bf85561e474781fe4eee143de76fdc1a /jstests/noPassthrough/plan_cache_memory_debug_info.js
parent6270f8eab062bb441ce3acc67280227f0d390f7e (diff)
downloadmongo-a9d10207448a5d1eeb7a6997cd298213c3e5c424.tar.gz
SERVER-59695 Make index filters work with SBE plan cache
Co-authored-by: Ruoxin Xu ruoxin.xu@mongodb.com
Diffstat (limited to 'jstests/noPassthrough/plan_cache_memory_debug_info.js')
-rw-r--r--jstests/noPassthrough/plan_cache_memory_debug_info.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/plan_cache_memory_debug_info.js b/jstests/noPassthrough/plan_cache_memory_debug_info.js
index 60406402158..5f4b9b20678 100644
--- a/jstests/noPassthrough/plan_cache_memory_debug_info.js
+++ b/jstests/noPassthrough/plan_cache_memory_debug_info.js
@@ -41,6 +41,8 @@ function getPlanCacheEntryForFilter(coll, filter) {
}
function assertExistenceOfRequiredCacheEntryFields(entry) {
+ assert(entry.hasOwnProperty("version"), entry);
+ assert.eq(entry["version"], "1", entry);
assert(entry.hasOwnProperty("queryHash"), entry);
assert(entry.hasOwnProperty("planCacheKey"), entry);
assert(entry.hasOwnProperty("isActive"), entry);
@@ -82,6 +84,7 @@ if (checkSBEEnabled(db, ["featureFlagSbePlanCache"])) {
MongoRunner.stopMongod(conn);
return;
}
+
coll.drop();
createIndexesForColl(coll);