summaryrefslogtreecommitdiff
path: root/src/btree/bt_compact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree/bt_compact.c')
-rw-r--r--src/btree/bt_compact.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/btree/bt_compact.c b/src/btree/bt_compact.c
index c6a412aa84e..c8d9c7a5bc5 100644
--- a/src/btree/bt_compact.c
+++ b/src/btree/bt_compact.c
@@ -141,8 +141,9 @@ __wt_compact(WT_SESSION_IMPL *session)
* read, set its generation to a low value so it is evicted
* quickly.
*/
- WT_ERR(__wt_tree_walk(session, &ref,
- WT_READ_COMPACT | WT_READ_NO_GEN | WT_READ_WONT_NEED));
+ WT_ERR(__wt_tree_walk_custom_skip(session, &ref,
+ __wt_compact_page_skip, NULL,
+ WT_READ_NO_GEN | WT_READ_WONT_NEED));
if (ref == NULL)
break;
@@ -173,7 +174,8 @@ err: if (ref != NULL)
* Return if compaction requires we read this page.
*/
int
-__wt_compact_page_skip(WT_SESSION_IMPL *session, WT_REF *ref, bool *skipp)
+__wt_compact_page_skip(
+ WT_SESSION_IMPL *session, WT_REF *ref, void *context, bool *skipp)
{
WT_BM *bm;
WT_DECL_RET;
@@ -181,6 +183,7 @@ __wt_compact_page_skip(WT_SESSION_IMPL *session, WT_REF *ref, bool *skipp)
u_int type;
const uint8_t *addr;
+ WT_UNUSED(context);
/*
* Skip deleted pages, rewriting them doesn't seem useful; in a better
* world we'd write the parent to delete the page.