diff options
author | Monty <monty@mariadb.org> | 2020-07-16 12:45:30 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-07-23 10:54:32 +0300 |
commit | 26824581281fcb2b2251585d8081de38d561ca93 (patch) | |
tree | 429a399fc66e8066f76864a7df5a66fa2c1ba623 /sql/rpl_rli.cc | |
parent | c89e927a5675bd1e84a9c5dd02f5d649e829453e (diff) | |
download | mariadb-git-26824581281fcb2b2251585d8081de38d561ca93.tar.gz |
Use larger buffer when reading binary and relay logs
- Should speed up replication
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r-- | sql/rpl_rli.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc index 11eccefdde9..941616a26d5 100644 --- a/sql/rpl_rli.cc +++ b/sql/rpl_rli.cc @@ -268,7 +268,7 @@ a file name for --relay-log-index option", opt_relaylog_index_name); msg= current_thd->get_stmt_da()->message(); goto err; } - if (init_io_cache(&info_file, info_fd, IO_SIZE*2, READ_CACHE, 0L,0, + if (init_io_cache(&info_file, info_fd, LOG_BIN_IO_SIZE, READ_CACHE, 0L,0, MYF(MY_WME))) { sql_print_error("Failed to create a cache on relay log info file '%s'", @@ -303,7 +303,7 @@ Failed to open the existing relay log info file '%s' (errno %d)", error= 1; } else if (init_io_cache(&info_file, info_fd, - IO_SIZE*2, READ_CACHE, 0L, 0, MYF(MY_WME))) + LOG_BIN_IO_SIZE, READ_CACHE, 0L, 0, MYF(MY_WME))) { sql_print_error("Failed to create a cache on relay log info file '%s'", fname); |