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.
sql: create jobs for truncated and dropped tables
Creates a job for statements involving dropping or truncated tables, including DROP DATABASE. The job is completed when the GC TTL expires and both table data and ID is deleted for each of the tables involved. Detailed running statuses are added to provide visibility to the progress of the dropping or truncating of tables. This is surfaced by adding an additional status field to the payload proto of jobs, and concatenated to the running status when populating the interal jobs table. For dropping or truncating jobs, the detailed running status is determined by the status of the table at the earliest stage of the schema change. Fixes cockroachdb#19004 Release note: None
- Loading branch information
Erik Trinh
committed
Sep 19, 2018
1 parent
2ddf654
commit a06d3e6
Showing
25 changed files
with
1,132 additions
and
364 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
Oops, something went wrong.