Conversation
recv_recovery_from_checkpoint_start(): Before applying any page-level log records, invoke recv_rename_files() to replay FILE_RENAME records. In this way, recv_sys_t::recover_deferred() will not overwrite any old data files that had been renamed before a new file was created.
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
recv_recovery_from_checkpoint_start(): Before applying any page-level log records, invokerecv_rename_files()to replayFILE_RENAMErecords. In this way,recv_sys_t::recover_deferred()will not overwrite any old data files that had been renamed before a new file was created.This is a port of b6e3bf0 from #4817. Unfortunately, I was unable to reproduce this outside the test
backup.backup_innodbof that branch; that test conveniently reproduces the issue for me underrr record. Reproducibility must depend on some delicate timing. I tried to reproduce this with the following test case:The issue in the above test case scenario would be that the new table
awould overwrite the data file of the old tablea, which is known asc. This is prevented by renaming all data files before starting to apply any changes to them.