-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Engines - Transactions
-
691.574
-
None
-
None
_instantiate_col (src/btree/bt_delete.c) instantiates fast-truncated column-store pages via _wt_col_modify(session, cbt, key, tombstone, true, true) once per deleted key, which routes through the real update path and charges the resulting dirty bytes to whichever session's session->txn->bytes_dirty happens to be doing the instantiation.
_instantiate_row (same file) does the equivalent work via _wt_cache_page_inmem_incr(session, page, size, false), which updates cache/page accounting without charging any transaction.
A read-only transaction that merely triggers instantiation of a fast-truncated column-store page can therefore accumulate bytes_dirty for work it did not perform, while the equivalent row-store case never does. Evaluate whether _instantiate_col should follow _instantiate_row's approach (or vice versa) so bytes_dirty accounting is consistent between the two, and any logic that inspects bytes_dirty (e.g. WT_TXN_TOO_LARGE_FOR_CACHE) doesn't inadvertently target readers for column-store fast-truncate but not row-store.