[MDEV-17312] BACKUP: track and report DDLs Created: 2018-09-27 Updated: 2019-03-04 Resolved: 2019-03-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
On BACKUP START the server should start monitoring DDLs and collect all names of tables that had their metadata changed. This can be collected in a temporary table (MEMORY with overflow to disk, as usual) and returned, for example, in a INFORMATION_SCHEMA table (preferrably with file names, if possible). The backup client can thus retrieve all such tables (that were supposedly created/dropped/renamed/modified during the backup process) and copy them again (or drop or rename in the backup — the I_S table should have enough information for that). |
| Comments |
| Comment by Vladislav Vaintroub [ 2018-09-27 ] |
|
I think that it would be hard to do efficient renames in Aria, just based on file names and operations in the DDL log. In absence of unique versioning, we'll have to re-copy new and renamed files that are in the DDL log. |