diff options
author | unknown <guilhem@gbichot3.local> | 2007-02-15 15:50:56 +0100 |
---|---|---|
committer | unknown <guilhem@gbichot3.local> | 2007-02-15 15:50:56 +0100 |
commit | 9dfb1d9011cf5b31d139d3904a0bf3afae91ad24 (patch) | |
tree | fafbcc3b9ba348c4eaa43b40fb42043ae076a152 /sql/log.cc | |
parent | f6834c02ca00ba2e07bebb61efa4eec4afad67ca (diff) | |
download | mariadb-git-9dfb1d9011cf5b31d139d3904a0bf3afae91ad24.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).
sql/log.cc:
fixing wrong order of arguments to my_create()
(3rd param is the desired modes of the file; "0" lead to no rights
for anybody on the file).
sql/mysqld.cc:
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.cc | 2 |
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; |