change binlogSize to indicate writing binlog