• Eugene Kosov's avatar
    split log_t::buf into two buffers · 7f9dc0d8
    Eugene Kosov authored
    Maybe this patch will help catch problems like buffer overflow.
    
    log_t::first_in_use: removed
    
    log_t::buf: this is where mtr_t are supposed to append data
    log_t::flush_buf: this is from server writes to a file
    
    Those two buffers are std::swap()ped when some thread is gonna write
    to a file
    7f9dc0d8
buf0buf.cc 204 KB