~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2008-07-18 20:10:26 UTC
  • mfrom: (51.3.29 remove-dbug)
  • Revision ID: brian@tangent.org-20080718201026-tto5golt0xhwqe4a
Merging in Jay's final patch on dbug.

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
 
#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)
 
22
#if !defined(UT_DBG_USE_ABORT)
28
23
/* Null pointer used to generate memory trap */
29
24
 
30
25
ulint*  ut_dbg_null_ptr         = NULL;
65
60
#endif
66
61
}
67
62
 
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__ */
83
63
# if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
84
64
/*****************************************************************
85
65
Stop a thread after assertion failure. */
95
75
        os_thread_sleep(1000000000);
96
76
}
97
77
# endif
98
 
#endif /* __NETWARE__ */