Commit 29836869 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-8045 Assertion `0' fails in Protocol::end_statement on CREATE VIEW after...

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
parent 8e797ae2
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment