summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2008-03-31 10:40:39 +0300
committergkodinov/kgeorge@magare.gmz <>2008-03-31 10:40:39 +0300
commitdd62320d0e665800661b02bd2176111bae19068b (patch)
treeafdcfa074599e5684ac6de2dfec247cda696263a /sql/log.cc
parent6a272aecc8d10e789c642afd0bc3ee2186d87c3f (diff)
parent6916284df0acad571c417ce702f170c5812d6fcf (diff)
downloadmariadb-git-dd62320d0e665800661b02bd2176111bae19068b.tar.gz
Merge bk-internal:/home/bk/mysql-5.1
into magare.gmz:/home/kgeorge/mysql/work/merge-build-5.1-bugteam
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index fcb81e05ab3..384f53bf64a 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2420,6 +2420,11 @@ bool MYSQL_BIN_LOG::open_index_file(const char *index_file_name_arg,
my_seek(index_file_nr,0L,MY_SEEK_END,MYF(0)),
0, MYF(MY_WME | MY_WAIT_IF_FULL)))
{
+ /*
+ TODO: all operations creating/deleting the index file or a log, should
+ call my_sync_dir() or my_sync_dir_by_file() to be durable.
+ TODO: file creation should be done with my_create() not my_open().
+ */
if (index_file_nr >= 0)
my_close(index_file_nr,MYF(0));
return TRUE;