diff options
author | gkodinov/kgeorge@magare.gmz <> | 2008-03-31 10:40:39 +0300 |
---|---|---|
committer | gkodinov/kgeorge@magare.gmz <> | 2008-03-31 10:40:39 +0300 |
commit | dd62320d0e665800661b02bd2176111bae19068b (patch) | |
tree | afdcfa074599e5684ac6de2dfec247cda696263a /sql/log.cc | |
parent | 6a272aecc8d10e789c642afd0bc3ee2186d87c3f (diff) | |
parent | 6916284df0acad571c417ce702f170c5812d6fcf (diff) | |
download | mariadb-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.cc | 5 |
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; |