~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-12-03 01:16:19 UTC
  • mfrom: (1819.9.81 update-innobase)
  • Revision ID: kalebral@gmail.com-20101203011619-n6v584rijwdet05b
Merge Stewart - update Innobase plugin based on InnoDB 1.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
#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)
 
40
#ifndef UT_DBG_USE_ABORT
46
41
/** A null pointer that will be dereferenced to trigger a memory trap */
47
42
UNIV_INTERN ulint*      ut_dbg_null_ptr         = NULL;
48
43
#endif
86
81
#endif
87
82
}
88
83
 
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)
 
84
#if defined(UNIV_SYNC_DEBUG) || !defined(UT_DBG_USE_ABORT)
105
85
/*************************************************************//**
106
86
Stop a thread after assertion failure. */
107
87
UNIV_INTERN
117
97
        os_thread_sleep(1000000000);
118
98
#endif /* !UNIV_HOTBACKUP */
119
99
}
120
 
# endif
121
 
#endif /* __NETWARE__ */
 
100
#endif
122
101
 
123
102
#ifdef UNIV_COMPILE_TEST_FUNCS
124
103