summaryrefslogtreecommitdiff
path: root/sql/parse_file.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-05-03 18:26:02 +0200
committerSergei Golubchik <serg@mariadb.org>2015-05-03 18:26:02 +0200
commit298368693c43e4ef878b3b01a1ae234cdf94d905 (patch)
treea532cbfb52533af2fea8eebda8fa7d6a9bfc834e /sql/parse_file.cc
parent8e797ae26753b9bd3f8fd107175d4751953d875b (diff)
downloadmariadb-git-298368693c43e4ef878b3b01a1ae234cdf94d905.tar.gz
MDEV-8045 Assertion `0' fails in Protocol::end_statement on CREATE VIEW after another connection aborted
0 is a valid value for a file descriptor
Diffstat (limited to 'sql/parse_file.cc')
-rw-r--r--sql/parse_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/parse_file.cc b/sql/parse_file.cc
index ee031c1bbc2..197f7c97fda 100644
--- a/sql/parse_file.cc
+++ b/sql/parse_file.cc
@@ -282,7 +282,7 @@ sql_create_definition_file(const LEX_STRING *dir, const LEX_STRING *file_name,
path[path_end+1]= '\0';
if ((handler= mysql_file_create(key_file_fileparser,
path, CREATE_MODE, O_RDWR | O_TRUNC,
- MYF(MY_WME))) <= 0)
+ MYF(MY_WME))) < 0)
{
DBUG_RETURN(TRUE);
}