STATUS
------
Approved.
DETAILS
-------
> Bug#42402 - Restore crashes server if tablespace does not exist
>
> Before, RESTORE would crash if the backup image contained tables originally
> stored in a tablespace that no longer exists at RESTORE time.
>
> With this patch, the tablespace is recreated like it was at BACKUP time if it
> does not exist when RESTORE is executed.
> modified:
> mysql-test/suite/backup/r/backup_tablespace.result
> mysql-test/suite/backup/t/backup_tablespace.test
> sql/backup/kernel.cc
> sql/si_objects.cc
>
> per-file messages:
> mysql-test/suite/backup/r/backup_tablespace.result
> Add test for RESTORE after dropping a dependant tablespace
> mysql-test/suite/backup/t/backup_tablespace.test
> Add test for RESTORE after dropping a dependant tablespace
> sql/backup/kernel.cc
> Fix multiline if-block without {...}
> sql/si_objects.cc
> Make find_tablespace return NULL if the tablespace does not exist on the server.
Chuck