-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require LSN on branch creation internally (partial fix #2063)
This commit cleans up our internal APIs and leaves fewer places where one can forgot to explicitly specify the LSN to branch from. * `neon_local branch` still works without `--ancestor-start-lsn` and the user may bump into a race condition when branching right after SQL query is completed. We should query safekeepers for the most recent `commit_lsn` instead, just like in cloud. * `TimelineCreateRequest` HTTP API for Pageserver now takes requires both `ancestor_timeline_id` and `ancestor_start_lsn` to be simultaneously present or absent. It was allowed to omit start LSN before.
- Loading branch information
Showing
8 changed files
with
179 additions
and
70 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
Oops, something went wrong.