forked from cockroachdb/cockroach
-
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.
62379: importccl,backupccl: create job record in planner txn r=pbardea a=pbardea This commit updates the way that we create the job record in import and applies the same logic to backup and restore. Instead of committing the planner transaction before creating the job record in a separate transaction, the job record creation now _uses_ the planner transaction. The planner transaction is then committed after creating the job record. This should not result in any change in functionality. The change was intended for increased readability: since the main goal of the plan hook is to create a job record, it makes sense that it is done in the planner's transaction. The same logic is applied to planning backup and restore jobs. Release note: None Co-authored-by: Paul Bardea <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
47 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