mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fix MDEV-18750: failed to flashback large-size binlog file
fix MDEV-18750: failed to flashback large-size binlog file fix mysqlbinlog flashback failure caused by reading io_cache without MY_FULL_IO flag fix MDEV-18750: mysqlbinlog flashback failure on large binlog
This commit is contained in:
committed by
Oleksandr "Sanja" Byelkin
parent
b4287ec386
commit
d7c8423a3d
@@ -120,6 +120,10 @@ init_functions(IO_CACHE* info)
|
||||
DBUG_ASSERT(0);
|
||||
break;
|
||||
}
|
||||
if (type == READ_CACHE || type == WRITE_CACHE || type == SEQ_READ_APPEND)
|
||||
info->myflags|= MY_FULL_IO;
|
||||
else
|
||||
info->myflags&= ~MY_FULL_IO;
|
||||
}
|
||||
|
||||
|
||||
@@ -296,10 +300,6 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
|
||||
}
|
||||
info->inited=info->aio_result.pending=0;
|
||||
#endif
|
||||
if (type == READ_CACHE || type == WRITE_CACHE || type == SEQ_READ_APPEND)
|
||||
info->myflags|= MY_FULL_IO;
|
||||
else
|
||||
info->myflags&= ~MY_FULL_IO;
|
||||
DBUG_RETURN(0);
|
||||
} /* init_io_cache */
|
||||
|
||||
|
Reference in New Issue
Block a user