huskies: merge 889

This commit is contained in:
dave
2026-05-01 14:56:13 +00:00
parent 61cf7684de
commit f8a295eaec
7 changed files with 215 additions and 3 deletions
+4
View File
@@ -268,6 +268,10 @@ pub fn evict_item(story_id: &str) -> Result<(), String> {
// longer counted by the iter that rebuild_index uses.
state.index = rebuild_index(&state.crdt);
// Record the tombstone so that any future write_item call for this
// story_id is rejected even if the index no longer contains it.
state.tombstones.insert(story_id.to_string());
// Drop the content-store entry so the cached body doesn't outlive the
// CRDT entry. (Bug 521 follow-up: when CONTENT_STORE becomes a true
// lazy cache, this explicit eviction can go away.)