| 5335 | |
| 5336 | |
| 5337 | bool MYSQL_BIN_LOG::append_buffer(const char* buf, uint len, Master_info *mi) |
| 5338 | { |
| 5339 | DBUG_ENTER("MYSQL_BIN_LOG::append_buffer"); |
| 5340 | |
| 5341 | // check preconditions |
| 5342 | DBUG_ASSERT(log_file.type == SEQ_READ_APPEND); |
| 5343 | DBUG_ASSERT(is_relay_log); |
| 5344 | mysql_mutex_assert_owner(&LOCK_log); |
| 5345 | |
| 5346 | // write data |
| 5347 | bool error= false; |
| 5348 | if (my_b_append(&log_file,(uchar*) buf,len) == 0) |
| 5349 | { |
| 5350 | bytes_written += len; |
| 5351 | error= after_append_to_relay_log(mi); |
| 5352 | } |
| 5353 | else |
| 5354 | error= true; |
| 5355 | |
| 5356 | DBUG_RETURN(error); |
| 5357 | } |
| 5358 | #endif // ifdef HAVE_REPLICATION |
| 5359 | |
| 5360 | bool MYSQL_BIN_LOG::flush_and_sync(const bool force) |
nothing calls this directly
no outgoing calls
no test coverage detected