-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Transactions
-
None
-
Storage Engines
-
SE Transactions - 2025-05-23
-
3
The __rec_split_write function is defined as shown below:
static int __rec_split_write(WT_SESSION_IMPL *session, WT_RECONCILE *r, WT_REC_CHUNK *chunk, WT_ITEM *compressed_image, bool last_block) {
The compressed_image arg seems to always be NULL in our code:
src/reconcile/rec_write.c:1511: WT_RET(__rec_split_write(session, r, r->cur_ptr, NULL, false)); src/reconcile/rec_write.c:1514: WT_RET(__rec_split_write(session, r, r->prev_ptr, NULL, false)); src/reconcile/rec_write.c:1715: return (__rec_split_write(session, r, r->prev_ptr, NULL, false)); src/reconcile/rec_write.c:1768: WT_RET(__rec_split_write(session, r, r->prev_ptr, NULL, false)); src/reconcile/rec_write.c:1772: return (__rec_split_write(session, r, r->cur_ptr, NULL, true));
I am wondering if this a bug or just dead code.