summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <aelkin/andrei@mysql1000.(none)>2008-03-30 14:12:27 +0300
committerunknown <aelkin/andrei@mysql1000.(none)>2008-03-30 14:12:27 +0300
commit3d3c7fbe35e7939a92cf52afe90093d4083429c1 (patch)
tree213b019cf3469c0a91f03081edb91a1d56590b00 /sql/log.cc
parent2a001d5389241f0f3cd3debe295ec3ed3c0eea3c (diff)
parentf5f7a59ff8fa886fcc55366df97c339320dc456a (diff)
downloadmariadb-git-3d3c7fbe35e7939a92cf52afe90093d4083429c1.tar.gz
Merge mysql1000.(none):/home/andrei/MySQL/BARE/mysql-5.1
into mysql1000.(none):/home/andrei/MySQL/MERGE/5.1-main2rpl client/mysqltest.c: Auto merged sql/log.cc: Auto merged sql/sql_class.cc: Auto merged
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 6e6a29c59b7..764396ec5e9 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2339,6 +2339,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;