summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cache/cache_las.c4
1 files changed, 3 insertions, 1 deletions
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;