summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-11-23 00:56:03 -0500
committerMichael Cahill <michael.cahill@mongodb.com>2017-11-23 16:56:03 +1100
commit1f5219ae1d34beb2f34a8e28f91dcdcfb6241963 (patch)
tree5a5c22bdc289d0ab2f269740866e7cab5ba9f382
parent7439eb6f669b546c9884e13d1fad6aad9b1017d3 (diff)
downloadmongo-1f5219ae1d34beb2f34a8e28f91dcdcfb6241963.tar.gz
WT-3607 compaction skips all blocks with associated disk images (#3801)
Compaction skips all blocks with associated disk images, but the disk image may simply be a result of not wanting to discard the block's contents from the cache. Only skip blocks without any disk address.
-rw-r--r--src/btree/bt_compact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_compact.c b/src/btree/bt_compact.c
index cbc19df65fa..b3e23a8251c 100644
--- a/src/btree/bt_compact.c
+++ b/src/btree/bt_compact.c
@@ -58,7 +58,7 @@ __compact_rewrite(WT_SESSION_IMPL *session, WT_REF *ref, bool *skipp)
if (mod->rec_result == WT_PM_REC_MULTIBLOCK)
for (multi = mod->mod_multi,
i = 0; i < mod->mod_multi_entries; ++multi, ++i) {
- if (multi->disk_image != NULL)
+ if (multi->addr.addr == NULL)
continue;
if ((ret = bm->compact_page_skip(bm, session,
multi->addr.addr, multi->addr.size, skipp)) != 0)