cultcache-rs: an ungated batch keeps last_read current, pinned

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-27 20:31:17 +01:00
commit b38426c579

View file

@ -543,6 +543,8 @@ fn last_read_follows_this_handles_own_writes() {
rows.extend(staged(&cache, &[("c", unique("C"))]));
cache.put_prepared_batch(rows).unwrap();
assert!(cache.delete::<Plain>("p").unwrap());
// An ungated batch is a landing the store records too.
cache.put_prepared_batch(staged(&cache, &[("q", Plain { value: "q".into() })])).unwrap();
cache.put("d", &unique("D")).unwrap();
cache.put("a", &unique("A2")).unwrap();
assert!(cache.delete::<Unique>("c").unwrap());