From c8b88e8e45770ecae2233a5f9fb3dd2a32e17148 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 May 2005 21:01:54 +0200 Subject: [PATCH] Include fix to function open_binlog from 4.1 - Add O_SHARE when opening file. sql/log.cc: Add O_SHARE when opening file. This is from mysql-4.1 but since function has been moved from sql_repl.cc, it was missed during merge. --- sql/log.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/log.cc b/sql/log.cc index 91428cf41be..db592649d13 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -232,7 +232,8 @@ File open_binlog(IO_CACHE *log, const char *log_file_name, const char **errmsg) File file; DBUG_ENTER("open_binlog"); - if ((file = my_open(log_file_name, O_RDONLY | O_BINARY, MYF(MY_WME))) < 0) + if ((file = my_open(log_file_name, O_RDONLY | O_BINARY | O_SHARE, + MYF(MY_WME))) < 0) { sql_print_error("Failed to open log (file '%s', errno %d)", log_file_name, my_errno);