mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
fix windows build of CSV
This commit is contained in:
parent
c9b6315699
commit
5fad999feb
1 changed files with 4 additions and 3 deletions
|
@ -939,7 +939,7 @@ int ha_tina::write_row(byte * buf)
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
|
|
||||||
/* use pwrite, as concurrent reader could have changed the position */
|
/* use pwrite, as concurrent reader could have changed the position */
|
||||||
if (my_write(share->tina_write_filedes, buffer.ptr(), size,
|
if (my_write(share->tina_write_filedes, (byte*)buffer.ptr(), size,
|
||||||
MYF(MY_WME | MY_NABP)))
|
MYF(MY_WME | MY_NABP)))
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
|
|
||||||
|
@ -1246,7 +1246,8 @@ int ha_tina::rnd_end()
|
||||||
/* if there is something to write, write it */
|
/* if there is something to write, write it */
|
||||||
if ((write_end - write_begin) &&
|
if ((write_end - write_begin) &&
|
||||||
(my_write(update_temp_file,
|
(my_write(update_temp_file,
|
||||||
file_buff->ptr() + (write_begin - file_buff->start()),
|
(byte*)(file_buff->ptr() +
|
||||||
|
(write_begin - file_buff->start())),
|
||||||
write_end - write_begin, MYF_RW)))
|
write_end - write_begin, MYF_RW)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
@ -1402,7 +1403,7 @@ int ha_tina::repair(THD* thd, HA_CHECK_OPT* check_opt)
|
||||||
{
|
{
|
||||||
write_end= min(file_buff->end(), current_position);
|
write_end= min(file_buff->end(), current_position);
|
||||||
if ((write_end - write_begin) &&
|
if ((write_end - write_begin) &&
|
||||||
(my_write(repair_file, file_buff->ptr(),
|
(my_write(repair_file, (byte*)file_buff->ptr(),
|
||||||
write_end - write_begin, MYF_RW)))
|
write_end - write_begin, MYF_RW)))
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue