summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-04-11 12:38:21 +0200
committerunknown <msvensson@neptunus.(none)>2006-04-11 12:38:21 +0200
commit718d66e698f7644186af7f9f99308eadfc902603 (patch)
treeb9fee6dc996e87319d6f75063e89c619fd7d63bb
parentc73df2254f75a4f9565df55446bb9c75adea10dd (diff)
downloadmariadb-git-718d66e698f7644186af7f9f99308eadfc902603.tar.gz
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
-rw-r--r--storage/csv/ha_tina.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/storage/csv/ha_tina.cc b/storage/csv/ha_tina.cc
index 810292488fa..aed861279d9 100644
--- a/storage/csv/ha_tina.cc
+++ b/storage/csv/ha_tina.cc
@@ -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);