mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.0 into 10.1
Also, implement MDEV-11027 a little differently from 5.5 and 10.0: recv_apply_hashed_log_recs(): Change the return type back to void (DB_SUCCESS was always returned). Report progress also via systemd using sd_notifyf().
This commit is contained in:
@ -3355,6 +3355,7 @@ void handler::print_error(int error, myf errflag)
|
||||
textno=ER_FILE_USED;
|
||||
break;
|
||||
case ENOENT:
|
||||
case ENOTDIR:
|
||||
textno=ER_FILE_NOT_FOUND;
|
||||
break;
|
||||
case ENOSPC:
|
||||
@ -3831,7 +3832,6 @@ int handler::delete_table(const char *name)
|
||||
int saved_error= 0;
|
||||
int error= 0;
|
||||
int enoent_or_zero;
|
||||
char buff[FN_REFLEN];
|
||||
|
||||
if (ht->discover_table)
|
||||
enoent_or_zero= 0; // the table may not exist in the engine, it's ok
|
||||
@ -3840,8 +3840,7 @@ int handler::delete_table(const char *name)
|
||||
|
||||
for (const char **ext=bas_ext(); *ext ; ext++)
|
||||
{
|
||||
fn_format(buff, name, "", *ext, MY_UNPACK_FILENAME|MY_APPEND_EXT);
|
||||
if (mysql_file_delete_with_symlink(key_file_misc, buff, MYF(0)))
|
||||
if (my_handler_delete_with_symlink(key_file_misc, name, *ext, 0))
|
||||
{
|
||||
if (my_errno != ENOENT)
|
||||
{
|
||||
|
Reference in New Issue
Block a user