mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Remove the my_seek calls as we have just opened the file for append with O_APPEND and the file pointer should be at end of the file already.
storage/csv/ha_tina.cc: Remove the my_seek calls as we have just opened the file for append with O_APPEND and the file pointer should be at end of the file already
This commit is contained in:
parent
c73df2254f
commit
718d66e698
1 changed files with 0 additions and 11 deletions
|
@ -281,13 +281,6 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
|
|||
MYF(0))) == -1)
|
||||
goto error2;
|
||||
|
||||
/*
|
||||
We only use share->data_file for writing, so we scan to
|
||||
the end to append
|
||||
*/
|
||||
if (my_seek(share->data_file, 0, SEEK_END, MYF(0)) == MY_FILEPOS_ERROR)
|
||||
goto error2;
|
||||
|
||||
share->mapped_file= NULL; // We don't know the state as we just allocated it
|
||||
if (get_mmap(share, 0) > 0)
|
||||
goto error3;
|
||||
|
@ -1279,10 +1272,6 @@ int ha_tina::repair(THD* thd, HA_CHECK_OPT* check_opt)
|
|||
MYF(0))) == -1)
|
||||
DBUG_RETURN(-1);
|
||||
|
||||
/* Seek to end of file, any inserts will be appended there */
|
||||
if (my_seek(share->data_file, 0, SEEK_END, MYF(0)) == MY_FILEPOS_ERROR)
|
||||
DBUG_RETURN(-1);
|
||||
|
||||
if (get_mmap(share, 0) > 0)
|
||||
DBUG_RETURN(-1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue