From ce93ee3a7705929d4779cba8722a32c7129d3501 Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Mon, 13 Nov 2017 13:25:31 +1100 Subject: WT-3743 In lookaside sweep, check btree IDs are in range. (#3785) --- src/cache/cache_las.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cache/cache_las.c b/src/cache/cache_las.c index deed37517bb..35d9f43b172 100644 --- a/src/cache/cache_las.c +++ b/src/cache/cache_las.c @@ -849,7 +849,9 @@ __wt_las_sweep(WT_SESSION_IMPL *session) * reconciliation, we can safely remove entries from that point * on (for the given key) that are visible to all readers. */ - if (__bit_test(cache->las_sweep_dropmap, + if (las_id >= cache->las_sweep_dropmin && + las_id <= cache->las_sweep_dropmax && + __bit_test(cache->las_sweep_dropmap, las_id - cache->las_sweep_dropmin)) { WT_ERR(cursor->remove(cursor)); ++remove_cnt; -- cgit v1.2.1