~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Removed/replaced DBUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
and assert */
20
20
ibool   ut_dbg_stop_threads     = FALSE;
21
21
#endif
22
 
#if !defined(UT_DBG_USE_ABORT)
 
22
#ifdef __NETWARE__
 
23
ibool panic_shutdown = FALSE;   /* This is set to TRUE when on NetWare there
 
24
                                happens an InnoDB assertion failure or other
 
25
                                fatal error condition that requires an
 
26
                                immediate shutdown. */
 
27
#elif !defined(UT_DBG_USE_ABORT)
23
28
/* Null pointer used to generate memory trap */
24
29
 
25
30
ulint*  ut_dbg_null_ptr         = NULL;
60
65
#endif
61
66
}
62
67
 
 
68
#ifdef __NETWARE__
 
69
/*****************************************************************
 
70
Shut down MySQL/InnoDB after assertion failure. */
 
71
 
 
72
void
 
73
ut_dbg_panic(void)
 
74
/*==============*/
 
75
{
 
76
        if (!panic_shutdown) {
 
77
                panic_shutdown = TRUE;
 
78
                innobase_shutdown_for_mysql();
 
79
        }
 
80
        exit(1);
 
81
}
 
82
#else /* __NETWARE__ */
63
83
# if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
64
84
/*****************************************************************
65
85
Stop a thread after assertion failure. */
75
95
        os_thread_sleep(1000000000);
76
96
}
77
97
# endif
 
98
#endif /* __NETWARE__ */