forked from boskworks/bosk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: double-check that the root doc exists.
Pando's database writes use document filters to avoid doing writes under two circumstances: 1. Conditional updates whose preconditions fail 2. Updates inside nonexistent state tree nodes In either case, bosk is supposed to ignore the updates. However, this led to a bug when refurbishing from pando to another format. Refurbishing deletes any existing state documents, and this led to a window after the delete but before the DELETE event arrives, during which updates would be silently ignored. As a workaround, when we detect that an update affected no documents, we double check that the root document does, in fact, exist. For Sequoia, for simplicity, we don't do this.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters