-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow new constraints satisfied in the same transaction.
Signed-off-by: Michael Ponomarenko <[email protected]> Support adding and satisfying constraint in same txn on replicant Signed-off-by: Morgan Douglas <[email protected]> Tweak replicant impl Signed-off-by: Morgan Douglas <[email protected]> Tweak repl impl Signed-off-by: Morgan Douglas <[email protected]> Tweak repl impl Signed-off-by: Morgan Douglas <[email protected]> Refactor master impl for supporting adding+satisfying constraint in the same txn Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Address bug in a txn (1) constraint is added (2) constraint is satisfied with an alter during the scdone step for (2), replicants will assume that, since there is a constraint pointing to the table getting altered, the target key must have existed in the table before it got altered. This was previously a sound assumption because it was not possible to first add a constraint before satisfying it in the same transaction, which is the only case where this can validly occur. The changes in this commit 'pass' the compatibility check if we can't find the key that we're trying to validate in the pre-alter dbtable. TODO: make sure other compatibility checks in ondisk_schema_change aren't buggy. Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Refactor Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Remove redundant fn call Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Tweak impl Signed-off-by: Morgan Douglas <[email protected]> Determine if table was rebuilt Signed-off-by: Morgan Douglas <[email protected]> Fix Signed-off-by: Morgan Douglas <[email protected]> Cleanup Signed-off-by: Morgan Douglas <[email protected]> Update comment Signed-off-by: Morgan Douglas <[email protected]> Update comment Signed-off-by: Morgan Douglas <[email protected]> Cleanup Signed-off-by: Morgan Douglas <[email protected]>
- Loading branch information
Showing
15 changed files
with
296 additions
and
145 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
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
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
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
Oops, something went wrong.