huskies: merge 889
This commit is contained in:
@@ -143,6 +143,13 @@ pub fn write_item(
|
||||
return;
|
||||
};
|
||||
|
||||
// Reject any write (insert or update) for a tombstoned story_id.
|
||||
// This prevents a concurrent or late-arriving write from resurrecting
|
||||
// a story that was permanently deleted via evict_item.
|
||||
if state.tombstones.contains(story_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
if let Some(&idx) = state.index.get(story_id) {
|
||||
// Capture the old stage before updating so we can detect transitions.
|
||||
let old_stage = match state.crdt.doc.items[idx].stage.view() {
|
||||
|
||||
Reference in New Issue
Block a user