~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-11-06 15:43:10 UTC
  • mfrom: (1908.1.1 merge)
  • Revision ID: brian@tangent.org-20101106154310-g1jpjzwbc53pfc4f
Filesort encapsulation, plus modification to copy contructor

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
 
#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
81
86
#endif
82
87
}
83
88
 
84
 
#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)
85
105
/*************************************************************//**
86
106
Stop a thread after assertion failure. */
87
107
UNIV_INTERN
97
117
        os_thread_sleep(1000000000);
98
118
#endif /* !UNIV_HOTBACKUP */
99
119
}
100
 
#endif
 
120
# endif
 
121
#endif /* __NETWARE__ */
101
122
 
102
123
#ifdef UNIV_COMPILE_TEST_FUNCS
103
124