~akopytov/percona-xtrabackup/bug1162765-2.0

« back to all changes in this revision

Viewing changes to patches/innodb51_builtin.patch

  • Committer: Alexey Kopytov
  • Date: 2013-03-13 05:02:58 UTC
  • mfrom: (502.2.1 2.0)
  • Revision ID: akopytov@gmail.com-20130313050258-g9a5vv8exkv52mdj
MergedĀ lp:~akopytov/percona-xtrabackup/bug950334-2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
588
588
 
589
589
        ut_ad((mode != OS_AIO_IBUF) || (space->purpose == FIL_TABLESPACE));
590
590
 
591
 
+       if (space->size <= block_offset) {
 
591
+       if (space->size > 0 && space->size <= block_offset) {
592
592
+               ulint   actual_size;
593
593
+
594
594
+               mutex_exit(&(system->mutex));
595
595
+               fil_extend_space_to_desired_size(&actual_size, space->id,
596
 
+                                                ((block_offset + 1) / 64 + 1) * 64);
 
596
+                                                block_offset + 1);
597
597
+               mutex_enter(&(system->mutex));
598
598
+               /* should retry? but it may safe for xtrabackup for now. */
599
599
+       }