~akopytov/percona-xtrabackup/bug1175566-2.1

« back to all changes in this revision

Viewing changes to src/xtrabackup.cc

  • Committer: Alexey Kopytov
  • Date: 2013-04-27 12:15:56 UTC
  • mfrom: (534.10.1 2.1-bug1130145)
  • Revision ID: akopytov@gmail.com-20130427121556-v412i9uk08ntn1pg
Manual merge of lp:~sergei.glushchenko/percona-xtrabackup/2.1-bug1130145.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2424
2424
#define SRV_MAX_N_PENDING_SYNC_IOS      100
2425
2425
 
2426
2426
/************************************************************************
 
2427
@return TRUE if table should be opened. */
 
2428
static
 
2429
ibool
 
2430
xb_check_if_open_tablespace(
 
2431
        const char*     db,
 
2432
        const char*     table)
 
2433
{
 
2434
        char buf[FN_REFLEN];
 
2435
 
 
2436
        snprintf(buf, sizeof(buf), "%s%s/%s", xb_dict_prefix, db, table);
 
2437
 
 
2438
        return !check_if_skip_table(buf, "ibd");
 
2439
}
 
2440
 
 
2441
/************************************************************************
2427
2442
Initialize the tablespace memory cache and populate it by scanning for and
2428
2443
opening data files.
2429
2444
@returns DB_SUCCESS or error code.*/
2497
2512
                return(DB_ERROR);
2498
2513
        }
2499
2514
 
2500
 
        err = fil_load_single_table_tablespaces();
 
2515
        err = fil_load_single_table_tablespaces(xb_check_if_open_tablespace);
2501
2516
        if (err != DB_SUCCESS) {
2502
2517
                return(err);
2503
2518
        }