~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/ut/ut0dbg.c

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
37
37
will stop at the next ut_a() or ut_ad(). */
38
38
UNIV_INTERN ibool       ut_dbg_stop_threads     = FALSE;
39
39
#endif
40
 
#ifndef UT_DBG_USE_ABORT
 
40
#ifdef __NETWARE__
 
41
/** Flag for ignoring further assertion failures.  This is set to TRUE
 
42
when on NetWare there happens an InnoDB assertion failure or other
 
43
fatal error condition that requires an immediate shutdown. */
 
44
UNIV_INTERN ibool panic_shutdown = FALSE;
 
45
#elif !defined(UT_DBG_USE_ABORT)
41
46
/** A null pointer that will be dereferenced to trigger a memory trap */
42
47
UNIV_INTERN ulint*      ut_dbg_null_ptr         = NULL;
43
48
#endif
44
49
 
45
50
/*************************************************************//**
46
51
Report a failed assertion. */
47
 
#ifdef __cplusplus
48
 
extern "C"
49
 
#endif
50
52
UNIV_INTERN
51
53
void
52
54
ut_dbg_assertion_failed(
84
86
#endif
85
87
}
86
88
 
87
 
#if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
 
89
#ifdef __NETWARE__
 
90
/*************************************************************//**
 
91
Shut down MySQL/InnoDB after assertion failure. */
 
92
UNIV_INTERN
 
93
void
 
94
ut_dbg_panic(void)
 
95
/*==============*/
 
96
{
 
97
        if (!panic_shutdown) {
 
98
                panic_shutdown = TRUE;
 
99
                innobase_shutdown_for_mysql();
 
100
        }
 
101
        exit(1);
 
102
}
 
103
#else /* __NETWARE__ */
 
104
# if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
88
105
/*************************************************************//**
89
106
Stop a thread after assertion failure. */
90
107
UNIV_INTERN
100
117
        os_thread_sleep(1000000000);
101
118
#endif /* !UNIV_HOTBACKUP */
102
119
}
103
 
#endif
 
120
# endif
 
121
#endif /* __NETWARE__ */
104
122
 
105
123
#ifdef UNIV_COMPILE_TEST_FUNCS
106
124