diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-22 14:07:35 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 18:53:37 +0200 |
commit | 6309a30dc96f6c3615b8c5609f07f9bc3898352c (patch) | |
tree | ef69b4283b9aa0412bad9979bbf5077a4483f008 /sql/wsrep_binlog.cc | |
parent | 196e8529837558a72baf31d012285cc283b8e95d (diff) | |
download | mariadb-git-6309a30dc96f6c3615b8c5609f07f9bc3898352c.tar.gz |
my_b_fill, inline my_b_* functions instead of hairy macros
Diffstat (limited to 'sql/wsrep_binlog.cc')
-rw-r--r-- | sql/wsrep_binlog.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/wsrep_binlog.cc b/sql/wsrep_binlog.cc index b71da709eda..3788a6c9074 100644 --- a/sql/wsrep_binlog.cc +++ b/sql/wsrep_binlog.cc @@ -71,7 +71,6 @@ int wsrep_write_cache_buf(IO_CACHE *cache, uchar **buf, size_t *buf_len) memcpy(*buf + *buf_len, cache->read_pos, length); *buf_len = total_length; - cache->read_pos = cache->read_end; } while ((cache->file >= 0) && (length = my_b_fill(cache))); if (reinit_io_cache(cache, WRITE_CACHE, saved_pos, 0, 0)) @@ -200,7 +199,6 @@ static int wsrep_write_cache_once(wsrep_t* const wsrep, memcpy(buf + used, cache->read_pos, length); used = total_length; - cache->read_pos = cache->read_end; } while ((cache->file >= 0) && (length = my_b_fill(cache))); if (used > 0) @@ -270,7 +268,6 @@ static int wsrep_write_cache_inc(wsrep_t* const wsrep, cache->read_pos, length))) goto cleanup; - cache->read_pos = cache->read_end; } while ((cache->file >= 0) && (length = my_b_fill(cache))); if (WSREP_OK == err) *len = total_length; @@ -397,7 +394,6 @@ void wsrep_dump_rbr_direct(THD* thd, IO_CACHE* cache) WSREP_ERROR("Failed to write file '%s'", filename); goto cleanup; } - cache->read_pos= cache->read_end; } while ((cache->file >= 0) && (bytes_in_cache= my_b_fill(cache))); if(cache->error == -1) { |