mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Small fixes
This commit is contained in:
@ -1201,7 +1201,8 @@ AC_SUBST(MAKE_SHELL)
|
|||||||
# Already-done: stdlib.h string.h unistd.h termios.h
|
# Already-done: stdlib.h string.h unistd.h termios.h
|
||||||
AC_CHECK_HEADERS(varargs.h stdarg.h dirent.h locale.h ndir.h sys/dir.h \
|
AC_CHECK_HEADERS(varargs.h stdarg.h dirent.h locale.h ndir.h sys/dir.h \
|
||||||
sys/file.h sys/ndir.h sys/ptem.h sys/pte.h sys/select.h sys/stream.h \
|
sys/file.h sys/ndir.h sys/ptem.h sys/pte.h sys/select.h sys/stream.h \
|
||||||
sys/mman.h curses.h termcap.h termio.h termbits.h asm/termbits.h grp.h)
|
sys/mman.h curses.h termcap.h termio.h termbits.h asm/termbits.h grp.h \
|
||||||
|
paths.h)
|
||||||
|
|
||||||
# Already-done: strcasecmp
|
# Already-done: strcasecmp
|
||||||
AC_CHECK_FUNCS(lstat putenv select setenv setlocale strcoll tcgetattr)
|
AC_CHECK_FUNCS(lstat putenv select setenv setlocale strcoll tcgetattr)
|
||||||
|
@ -45,7 +45,7 @@ mystringsextra= strto.c ctype_autoconf.c
|
|||||||
dbugobjects = dbug.lo # IT IS IN SAFEMALLOC.C sanity.lo
|
dbugobjects = dbug.lo # IT IS IN SAFEMALLOC.C sanity.lo
|
||||||
mysysheaders = mysys_priv.h my_static.h
|
mysysheaders = mysys_priv.h my_static.h
|
||||||
mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
|
mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
|
||||||
my_create.lo my_delete.lo my_tempnam.lo my_open.lo \
|
my_create.lo my_delete.lo mf_tempfile.lo my_open.lo \
|
||||||
mf_casecnv.lo my_read.lo my_write.lo errors.lo \
|
mf_casecnv.lo my_read.lo my_write.lo errors.lo \
|
||||||
my_error.lo my_getwd.lo my_div.lo \
|
my_error.lo my_getwd.lo my_div.lo \
|
||||||
mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo\
|
mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo\
|
||||||
|
@ -178,6 +178,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||||||
((share->state.changed & STATE_CRASHED) ||
|
((share->state.changed & STATE_CRASHED) ||
|
||||||
(my_disable_locking && share->state.open_count)))
|
(my_disable_locking && share->state.open_count)))
|
||||||
{
|
{
|
||||||
|
DBUG_PRINT("error",("Table is marked as crashed"));
|
||||||
my_errno=((share->state.changed & STATE_CRASHED_ON_REPAIR) ?
|
my_errno=((share->state.changed & STATE_CRASHED_ON_REPAIR) ?
|
||||||
HA_ERR_CRASHED_ON_REPAIR : HA_ERR_CRASHED);
|
HA_ERR_CRASHED_ON_REPAIR : HA_ERR_CRASHED);
|
||||||
goto err;
|
goto err;
|
||||||
@ -209,6 +210,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||||||
#elif !defined(USE_RAID)
|
#elif !defined(USE_RAID)
|
||||||
if (share->base.raid_type)
|
if (share->base.raid_type)
|
||||||
{
|
{
|
||||||
|
DBUG_PRINT("error",("Table uses RAID but we don't have RAID support"));
|
||||||
my_errno=HA_ERR_UNSUPPORTED;
|
my_errno=HA_ERR_UNSUPPORTED;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
@ -219,6 +221,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||||||
if (share->base.max_key_length > MI_MAX_KEY_BUFF || keys > MI_MAX_KEY ||
|
if (share->base.max_key_length > MI_MAX_KEY_BUFF || keys > MI_MAX_KEY ||
|
||||||
key_parts >= MI_MAX_KEY * MI_MAX_KEY_SEG)
|
key_parts >= MI_MAX_KEY * MI_MAX_KEY_SEG)
|
||||||
{
|
{
|
||||||
|
DBUG_PRINT("error",("Wrong key info: Max_key_length: %d keys: %d key_parts: %d", share->base.max_key_length, keys, key_parts));
|
||||||
my_errno=HA_ERR_UNSUPPORTED;
|
my_errno=HA_ERR_UNSUPPORTED;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "my_static.h"
|
#include "my_static.h"
|
||||||
#include "mysys_err.h"
|
#include "mysys_err.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef HAVE_PATH_H
|
#ifdef HAVE_PATHS_H
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "sql_repl.h"
|
#include "sql_repl.h"
|
||||||
#include "sql_acl.h"
|
#include "sql_acl.h"
|
||||||
#include "log_event.h"
|
#include "log_event.h"
|
||||||
|
#include <thr_alarm.h>
|
||||||
#include <my_dir.h>
|
#include <my_dir.h>
|
||||||
|
|
||||||
extern const char* any_db;
|
extern const char* any_db;
|
||||||
|
Reference in New Issue
Block a user