huskies: merge 889
This commit is contained in:
@@ -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.)
|
||||
|
||||
Reference in New Issue
Block a user