mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
InnoDB: Fix ut0dbg compilation errors on NetWare
innobase/dict/dict0boot.c: Remove dummy code to work around bug in the pgcc compiler. innobase/include/ut0dbg.h: UT_DBG_PANIC: Avoid exit(), as lexyy.c re-#defines exit(). Move the code to the function ut_dbg_panic() instead. innobase/ut/ut0dbg.c: [__NETWARE__] Add function ut_dbg_panic()
This commit is contained in:
parent
5fed4f3a50
commit
76a11195b8
3 changed files with 17 additions and 16 deletions
|
|
@ -36,12 +36,8 @@ ut_dbg_assertion_failed(
|
|||
On NetWare, have a graceful exit rather than a segfault to avoid abends. */
|
||||
extern ibool panic_shutdown;
|
||||
/* Abort the execution. */
|
||||
# define UT_DBG_PANIC \
|
||||
if (!panic_shutdown){ \
|
||||
panic_shutdown = TRUE; \
|
||||
innobase_shutdown_for_mysql(); \
|
||||
} \
|
||||
exit(1)
|
||||
void ut_dbg_panic(void);
|
||||
# define UT_DBG_PANIC ut_dbg_panic()
|
||||
/* Stop threads in ut_a(). */
|
||||
# define UT_DBG_STOP while (0) /* We do not do this on NetWare */
|
||||
#else /* __NETWARE__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue