mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
my_b_fill, inline my_b_* functions instead of hairy macros
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user