summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorguilhem@gbichot3.local <>2007-02-15 15:50:56 +0100
committerguilhem@gbichot3.local <>2007-02-15 15:50:56 +0100
commit2f75c9cd69412de5d3736e775dd302ebdbc1e36d (patch)
treefafbcc3b9ba348c4eaa43b40fb42043ae076a152 /sql/log.cc
parent8b1609a63717227b8931bb3a7fdaf45a43b831c7 (diff)
downloadmariadb-git-2f75c9cd69412de5d3736e775dd302ebdbc1e36d.tar.gz
Backport from the Falcon tree.
When opening/creating the transaction coordinator's log, if binlog is used, the tc log is the binlog so we use the binlog's name; otherwise we use the mmap-based log, named after the mandatory argument of the --log-tc option (meant for that).
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 1961a5b6f88..aef8e2eff2c 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -2523,7 +2523,7 @@ int TC_LOG_MMAP::open(const char *opt_name)
goto err;
if (using_heuristic_recover())
return 1;
- if ((fd= my_create(logname, O_RDWR, 0, MYF(MY_WME))) < 0)
+ if ((fd= my_create(logname, CREATE_MODE, O_RDWR, MYF(MY_WME))) < 0)
goto err;
inited=1;
file_length= opt_tc_log_size;