diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2022-04-07 09:12:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-07 10:08:29 +0000 |
commit | a9d10207448a5d1eeb7a6997cd298213c3e5c424 (patch) | |
tree | 3edbdf39bf85561e474781fe4eee143de76fdc1a /jstests/noPassthrough/plan_cache_memory_debug_info.js | |
parent | 6270f8eab062bb441ce3acc67280227f0d390f7e (diff) | |
download | mongo-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.js | 3 |
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); |