huskies: merge 1095 bug Shadow drift: set_name writes CRDT name register without updating pipeline_items.name
This commit is contained in:
@@ -155,6 +155,9 @@ pub fn set_name(story_id: &str, name: Option<&str>) -> bool {
|
||||
apply_and_persist(&mut state, |s| {
|
||||
s.crdt.doc.items[idx].name.set(value.clone())
|
||||
});
|
||||
// Drop the lock before the shadow write so `read_item` can acquire it.
|
||||
drop(state);
|
||||
crate::db::sync_item_name(story_id);
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user