~percona-core/percona-xtrabackup/2.1

« back to all changes in this revision

Viewing changes to src/innodb_int.cc

  • Committer: Alexey Kopytov
  • Date: 2013-07-20 14:24:26 UTC
  • Revision ID: akopytov@gmail.com-20130720142426-tydfny21rpkqo0wk
Rebased XtraBackup on MySQL versions 5.1.70, 5.5.30, 5.6.11 and Percona
Server versions 5.1.70-rel14.8 and 5.5.31-rel30.3.
 
Blueprint: https://blueprints.launchpad.net/percona-xtrabackup/+spec/rebase-2.1-on-newer-server-versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
long innobase_mirrored_log_groups = 1;
49
49
 
 
50
/******************************************************//**
 
51
Reads a specified log segment to a buffer. */
 
52
UNIV_INTERN
 
53
void
 
54
xb_log_group_read_log_seg(
 
55
/*===================*/
 
56
        ulint           type,           /*!< in: LOG_ARCHIVE or LOG_RECOVER */
 
57
        byte*           buf,            /*!< in: buffer where to read */
 
58
        log_group_t*    group,          /*!< in: log group */
 
59
        ib_uint64_t     start_lsn,      /*!< in: read area start */
 
60
        ib_uint64_t     end_lsn)        /*!< in: read area end */
 
61
{
 
62
#if defined(XTRADB_BASED) && !defined(XTRADB55)
 
63
        log_group_read_log_seg(type, buf, group, start_lsn, end_lsn, FALSE);
 
64
#else
 
65
        log_group_read_log_seg(type, buf, group, start_lsn, end_lsn);
 
66
#endif
 
67
}
 
68
 
50
69
/****************************************************************//**
51
70
A simple function to open or create a file.
52
71
@return own: handle to the file, not defined if error, error number
244
263
        if (!ret) {
245
264
                msg("xtrabackup: cannot set size for file %s\n", path);
246
265
                os_file_close(*file);
247
 
                os_file_delete(path);
 
266
                xb_file_delete(path);
248
267
                return ret;
249
268
        }
250
269
 
289
308
                msg("xtrabackup: could not write the first page to %s\n",
290
309
                    path);
291
310
                os_file_close(*file);
292
 
                os_file_delete(path);
 
311
                xb_file_delete(path);
293
312
                return ret;
294
313
        }
295
314
 
334
353
        /* do nothing */
335
354
}
336
355
 
 
356
my_bool
 
357
innobase_check_identifier_length(
 
358
/*=============================*/
 
359
        const char*     id __attribute__((unused)))
 
360
{
 
361
        msg("xtrabackup: innobase_check_identifier_length() called.\n");
 
362
        ut_a(0);
 
363
        return(false);
 
364
}
 
365
 
 
366
uint
 
367
innobase_convert_to_filename_charset(
 
368
/*=================================*/
 
369
        char*           to __attribute__((unused)),
 
370
        const char*     from __attribute__((unused)),
 
371
        ulint           len __attribute__((unused)))
 
372
{
 
373
        msg("xtrabackup: innobase_convert_to_filename_charset() called.\n");
 
374
        ut_a(0);
 
375
 
 
376
        return(0);
 
377
}
 
378
 
 
379
uint
 
380
innobase_convert_to_system_charset(
 
381
/*=================================*/
 
382
        char*           to __attribute__((unused)),
 
383
        const char*     from __attribute__((unused)),
 
384
        ulint           len __attribute__((unused)),
 
385
        uint*           errors __attribute__((unused)))
 
386
{
 
387
        msg("xtrabackup: innobase_convert_to__charset() called.\n");
 
388
        ut_a(0);
 
389
 
 
390
        return(0);
 
391
}
 
392
 
337
393
#if MYSQL_VERSION_ID >= 50500
338
394
 
339
395
/**********************************************************************//**