summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/block/block_ext.c
diff options
context:
space:
mode:
authorAlison Felizzi <alison.felizzi@mongodb.com>2021-10-28 04:09:48 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-28 04:36:16 +0000
commitefda3002d39fbdca5a85ce3d1ee8b68c67e4e23a (patch)
tree88ef3641d470bc340c24e6409bbac48606a8b680 /src/third_party/wiredtiger/src/block/block_ext.c
parent940af025c98416a9d3f8276c9bbf35163a79ede1 (diff)
downloadmongo-efda3002d39fbdca5a85ce3d1ee8b68c67e4e23a.tar.gz
Import wiredtiger: 99f4dd58a6256a349e7f99328c08afc764181882 from branch mongodb-master
ref: 5c24bfac13..99f4dd58a6 for: 5.2.0 WT-6022 NVRAM cache
Diffstat (limited to 'src/third_party/wiredtiger/src/block/block_ext.c')
-rw-r--r--src/third_party/wiredtiger/src/block/block_ext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/block/block_ext.c b/src/third_party/wiredtiger/src/block/block_ext.c
index 37916e482de..32bde280e69 100644
--- a/src/third_party/wiredtiger/src/block/block_ext.c
+++ b/src/third_party/wiredtiger/src/block/block_ext.c
@@ -588,6 +588,9 @@ __wt_block_free(WT_SESSION_IMPL *session, WT_BLOCK *block, const uint8_t *addr,
ret = __wt_block_off_free(session, block, objectid, offset, (wt_off_t)size);
__wt_spin_unlock(session, &block->live_lock);
+ /* Evict the freed block from the block cache */
+ __wt_blkcache_remove(session, offset, size, checksum);
+
return (ret);
}