Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PXB-3374 : Space ID is missing encryption information
With lock-ddl=REDUCED, the following sequence can happen (Not possible with lock-ddl=ON) 1. first an IBD with all zero(invalid) encryption is found 2. so this is added to invalid encryption ids 3. the same IBD is found again (because of concurrent DDL, they are both found with different names) 4. this time IBD has proper encryption, so fil_space_t is created 5. encryption info from redo is parsed. fil_tablespace_redo_encryption() 6. because the fil_space_t exists, encryption key is not added to the recovery encryption keys map 7. later at the end of the backup, we check if we have found a valid encryption key for the invalid encryption space_ids. 8. we haven’t (remember at step 6, we skipped it) 9. backup is aborted Fix: ---- Store keys in recv_sys->keys map even if there exists a tablespace
- Loading branch information