Still something doesn't add up. So the code this patch moves from xtrabackup_backup_func() to xb_data_files_init() has been previously copy-pasted from srv_normalize_init_values().
Now srv_normalize_init_values is called from srv_boot() which in turn is called from innobase_start_or_create_for_mysql().
Which means when applying an incremental backup, we first execute that code by calling xb_data_files_init(). And then execute this code once again when starting an InnoDB instance by calling innodb_init().
Am I missing anything here?
Please also provide a proper description of the problem in revision comments. I.e. what exactly on the code level led to the crash. And the current solution ("Fixed by srv_data_file_sizes in xb_delta_open_matching_space.") doesn't make much sense either.
Still something doesn't add up. So the code this patch moves from xtrabackup_ backup_ func() to xb_data_ files_init( ) has been previously copy-pasted from srv_normalize_ init_values( ).
Now srv_normalize_ init_values is called from srv_boot() which in turn is called from innobase_ start_or_ create_ for_mysql( ).
Which means when applying an incremental backup, we first execute that code by calling xb_data_ files_init( ). And then execute this code once again when starting an InnoDB instance by calling innodb_init().
Am I missing anything here?
Please also provide a proper description of the problem in revision comments. I.e. what exactly on the code level led to the crash. And the current solution ("Fixed by srv_data_file_sizes in xb_delta_ open_matching_ space." ) doesn't make much sense either.