3851
3851
my_off_t offset= BIN_LOG_HEADER_SIZE + FLAGS_OFFSET;
3852
3852
my_off_t org_position= my_tell(log_file.file, MYF(0));
3853
3853
uchar flags= 0; // clearing LOG_EVENT_BINLOG_IN_USE_F
3854
my_pwrite(log_file.file, &flags, 1, offset, MYF(0));
3861
my_seek(log_file.file, org_position, MY_SEEK_SET, MYF(0));
3854
pwrite(log_file.file, &flags, 1, offset);
3864
3857
/* this will cleanup IO_CACHE, sync and close the file */