MDEV-22941: Fix the DBUG_ENTER name
This commit is contained in:
parent
41b0d98e69
commit
90d1e58ed0
@ -1,5 +1,5 @@
|
|||||||
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
||||||
Copyright (c) 2009, 2017, MariaDB
|
Copyright (c) 2009, 2020, MariaDB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -4962,16 +4962,16 @@ bool store_schema_shemata(THD* thd, TABLE *table, LEX_STRING *db_name,
|
|||||||
*/
|
*/
|
||||||
static bool verify_database_directory_exists(const LEX_STRING &dbname)
|
static bool verify_database_directory_exists(const LEX_STRING &dbname)
|
||||||
{
|
{
|
||||||
DBUG_ENTER("verity_database_exists");
|
DBUG_ENTER("verify_database_directory_exists");
|
||||||
char path[FN_REFLEN + 16];
|
char path[FN_REFLEN + 16];
|
||||||
uint path_len;
|
uint path_len;
|
||||||
MY_STAT stat_info;
|
MY_STAT stat_info;
|
||||||
if (!dbname.str[0])
|
if (!dbname.str[0])
|
||||||
DBUG_RETURN(true); // Empty database name: does not exits.
|
DBUG_RETURN(true); // Empty database name: does not exist.
|
||||||
path_len= build_table_filename(path, sizeof(path) - 1, dbname.str, "", "", 0);
|
path_len= build_table_filename(path, sizeof(path) - 1, dbname.str, "", "", 0);
|
||||||
path[path_len - 1]= 0;
|
path[path_len - 1]= 0;
|
||||||
if (!mysql_file_stat(key_file_misc, path, &stat_info, MYF(0)))
|
if (!mysql_file_stat(key_file_misc, path, &stat_info, MYF(0)))
|
||||||
DBUG_RETURN(true); // The database directory was not found: does not exists.
|
DBUG_RETURN(true); // The database directory was not found: does not exist.
|
||||||
DBUG_RETURN(false); // The database directory was found.
|
DBUG_RETURN(false); // The database directory was found.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user