diff options
author | unknown <kostja@bodhi.(none)> | 2007-11-01 18:33:51 +0300 |
---|---|---|
committer | unknown <kostja@bodhi.(none)> | 2007-11-01 18:33:51 +0300 |
commit | 6dd04c22a695d5548045d9eda451af2cc016f7fb (patch) | |
tree | ca340a01c9ae51cebb4761f8340c01031a57a7be | |
parent | e70f6a90db445326ef5359e0ff5a05115235bfdf (diff) | |
download | mariadb-git-6dd04c22a695d5548045d9eda451af2cc016f7fb.tar.gz |
Cleanup execute_ddl_log_recovery() to not generate an error if
there is nothing to recover.
Discovered while working on Bug#12713
sql/sql_table.cc:
Use MYF(0) in my_open() in read_ddl_log_header() called from
execute_ddl_log_recovery() called during the server start up to not
generate an error if no ddl log exists. This is not an erroneous situation,
in fact it's the case in any server statrtup. The error was lost
anyway, since it was pushed into the stack of the artificial thd.
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 6edb8494b03..328b5e71a44 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -434,7 +434,7 @@ static uint read_ddl_log_header() create_ddl_log_file_name(file_name); if ((global_ddl_log.file_id= my_open(file_name, - O_RDWR | O_BINARY, MYF(MY_WME))) >= 0) + O_RDWR | O_BINARY, MYF(0))) >= 0) { if (read_ddl_log_file_entry(0UL)) { |