@@ -1294,7 +1294,7 @@ struct my_option xb_client_options[]= {
1294
1294
1295
1295
{" rsync" , OPT_RSYNC,
1296
1296
" Uses the rsync utility to optimize local file "
1297
- " transfers. When this option is specified, innobackupex uses rsync "
1297
+ " transfers. When this option is specified, " XB_TOOL_NAME " uses rsync "
1298
1298
" to copy all non-InnoDB files instead of spawning a separate cp for "
1299
1299
" each file, which can be much faster for servers with a large number "
1300
1300
" of databases or tables. This option cannot be used together with "
@@ -1402,7 +1402,7 @@ struct my_option xb_client_options[]= {
1402
1402
1403
1403
{" ftwrl-wait-query-type" , OPT_LOCK_WAIT_QUERY_TYPE,
1404
1404
" This option specifies which types of queries are allowed to complete "
1405
- " before innobackupex will issue the global lock. Default is all." ,
1405
+ " before " XB_TOOL_NAME " will issue the global lock. Default is all." ,
1406
1406
(uchar *) &opt_lock_wait_query_type, (uchar *) &opt_lock_wait_query_type,
1407
1407
&query_type_typelib, GET_ENUM, REQUIRED_ARG, QUERY_TYPE_ALL, 0 , 0 , 0 , 0 ,
1408
1408
0 },
@@ -1422,26 +1422,26 @@ struct my_option xb_client_options[]= {
1422
1422
NULL , NULL , 0 , GET_STR, OPT_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
1423
1423
1424
1424
{" kill-long-queries-timeout" , OPT_KILL_LONG_QUERIES_TIMEOUT,
1425
- " This option specifies the number of seconds innobackupex waits "
1425
+ " This option specifies the number of seconds " XB_TOOL_NAME " waits "
1426
1426
" between starting FLUSH TABLES WITH READ LOCK and killing those "
1427
1427
" queries that block it. Default is 0 seconds, which means "
1428
- " innobackupex will not attempt to kill any queries." ,
1428
+ XB_TOOL_NAME " will not attempt to kill any queries." ,
1429
1429
(uchar *) &opt_kill_long_queries_timeout,
1430
1430
(uchar *) &opt_kill_long_queries_timeout, 0 , GET_UINT, REQUIRED_ARG, 0 , 0 ,
1431
1431
0 , 0 , 0 , 0 },
1432
1432
1433
1433
{" ftwrl-wait-timeout" , OPT_LOCK_WAIT_TIMEOUT,
1434
- " This option specifies time in seconds that innobackupex should wait "
1434
+ " This option specifies time in seconds that " XB_TOOL_NAME " should wait "
1435
1435
" for queries that would block FTWRL before running it. If there are "
1436
- " still such queries when the timeout expires, innobackupex terminates "
1437
- " with an error. Default is 0, in which case innobackupex does not "
1436
+ " still such queries when the timeout expires, " XB_TOOL_NAME " terminates "
1437
+ " with an error. Default is 0, in which case " XB_TOOL_NAME " does not "
1438
1438
" wait for queries to complete and starts FTWRL immediately." ,
1439
1439
(uchar *) &opt_lock_wait_timeout, (uchar *) &opt_lock_wait_timeout, 0 ,
1440
1440
GET_UINT, REQUIRED_ARG, 0 , 0 , 0 , 0 , 0 , 0 },
1441
1441
1442
1442
{" ftwrl-wait-threshold" , OPT_LOCK_WAIT_THRESHOLD,
1443
1443
" This option specifies the query run time threshold which is used by "
1444
- " innobackupex to detect long-running queries with a non-zero value "
1444
+ XB_TOOL_NAME " to detect long-running queries with a non-zero value "
1445
1445
" of --ftwrl-wait-timeout. FTWRL is not started until such "
1446
1446
" long-running queries exist. This option has no effect if "
1447
1447
" --ftwrl-wait-timeout is 0. Default value is 60 seconds." ,
@@ -1919,6 +1919,17 @@ xb_get_one_option(const struct my_option *opt,
1919
1919
break ;
1920
1920
1921
1921
case OPT_INNODB_FLUSH_METHOD:
1922
+ #ifdef _WIN32
1923
+ /* From: storage/innobase/handler/ha_innodb.cc:innodb_init_params */
1924
+ switch (srv_file_flush_method) {
1925
+ case SRV_ALL_O_DIRECT_FSYNC + 1 /* "async_unbuffered"="unbuffered" */ :
1926
+ srv_file_flush_method= SRV_ALL_O_DIRECT_FSYNC;
1927
+ break ;
1928
+ case SRV_ALL_O_DIRECT_FSYNC + 2 /* "normal"="fsync" */ :
1929
+ srv_file_flush_method= SRV_FSYNC;
1930
+ break ;
1931
+ }
1932
+ #endif
1922
1933
ut_a (srv_file_flush_method
1923
1934
<= IF_WIN (SRV_ALL_O_DIRECT_FSYNC, SRV_O_DIRECT_NO_FSYNC));
1924
1935
ADD_PRINT_PARAM_OPT (innodb_flush_method_names[srv_file_flush_method]);
@@ -3076,7 +3087,9 @@ static bool xtrabackup_copy_logfile(bool last = false)
3076
3087
3077
3088
ut_ad (start_lsn == log_sys.log .scanned_lsn );
3078
3089
3079
- msg (" >> log scanned up to (" LSN_PF " )" , start_lsn);
3090
+ if (verbose) {
3091
+ msg (" >> log scanned up to (" LSN_PF " )" , start_lsn);
3092
+ }
3080
3093
3081
3094
/* update global variable*/
3082
3095
pthread_mutex_lock (&backup_mutex);
0 commit comments