~hrvojem/percona-xtrabackup/bug1295444-2.1

« back to all changes in this revision

Viewing changes to src/xtrabackup.cc

  • Committer: Alexey Kopytov
  • Date: 2014-09-10 12:09:53 UTC
  • mfrom: (759.2.1 2.1-xb-bug1222062)
  • Revision ID: akopytov@gmail.com-20140910120953-7o0lxxhv7cp2kvvd
MergedĀ lp:~sergei.glushchenko/percona-xtrabackup/2.1-xb-bug1222062.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
lsn_t xtrabackup_arch_last_file_lsn = 0ULL;
299
299
 
300
300
ulong xb_open_files_limit= 0;
 
301
my_bool xb_close_files= FALSE;
301
302
 
302
303
/* Datasinks */
303
304
ds_ctxt_t       *ds_data     = NULL;
487
488
#endif
488
489
  OPT_XTRA_INCREMENTAL_FORCE_SCAN,
489
490
  OPT_DEFAULTS_GROUP,
490
 
  OPT_OPEN_FILES_LIMIT
 
491
  OPT_OPEN_FILES_LIMIT,
 
492
  OPT_CLOSE_FILES
491
493
};
492
494
 
493
495
#if MYSQL_VERSION_ID >= 50600
915
917
   (G_PTR*) &xb_open_files_limit, (G_PTR*) &xb_open_files_limit, 0, GET_ULONG,
916
918
   REQUIRED_ARG, 0, 0, UINT_MAX, 0, 1, 0},
917
919
 
 
920
  {"close_files", OPT_CLOSE_FILES, "do not keep files opened. Use at your own "
 
921
   "risk.", (G_PTR*) &xb_close_files, (G_PTR*) &xb_close_files, 0, GET_BOOL,
 
922
   NO_ARG, 0, 0, 0, 0, 0, 0},
 
923
 
918
924
  { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
919
925
};
920
926
 
3059
3065
        xb_set_innodb_read_only();
3060
3066
 
3061
3067
        srv_backup_mode = TRUE;
 
3068
        srv_close_files = xb_close_files;
 
3069
 
 
3070
        if (srv_close_files)
 
3071
                msg("xtrabackup: warning: close-files specified. Use it "
 
3072
                    "at your own risk. If there are DDL operations like table DROP TABLE "
 
3073
                    "or RENAME TABLE during the backup, inconsistent backup will be "
 
3074
                    "produced.\n");
3062
3075
 
3063
3076
        /* initialize components */
3064
3077
        if(innodb_init_param())