Open
Description
See discussion at #58 (comment)
The idea is to move the concept of last_heads: Vec<ChangeHash>
, currently one per document, to a "per pending save per document" one, by moving it to DocState::Sync and DocState::PendingRemoval.
Processing would have happen at two places:
-
Inside
note_changes
, which would use the data found on the doc state instead ofself.last_heads
(this would remove the read lock by the way). -
Inside
save_document
, which would use the last (fut, last_heads) pair to compute the next one.
Metadata
Metadata
Assignees
Labels
No labels
Activity