mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-24 00:22:21 -04:00
18aa1d4299
* Fix commitlog `fold_transactions_from` ignoring requested offset Prior to this commit, `fold_transactions_from` on a durability backed by a commitlog would discard the requested offset and unconditionally yield all txes in the relevant segments. This commit changes that behavior so that `fold_transactions_from` skips commitlog commits (which contain many txes) less than the reqested offset, and skips txes using `consume_record`. * Add `Decoder::skip_record` Lucky I asked Kim whether I was using `consume_record` and `decode_record` correctly, because I wasn't. This commit adds methods to `Decoder` and `Visitor` for skipping records and rows, causing them to be extracted from the reader but not folded. * Fix test Add new methods to `Decoder` and `Visitor` hidden away in a test I missed.