~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error_injection.h

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
inline bool
58
58
check_and_unset_inject_value(int value)
59
59
{
60
 
  Session *thd= current_thd;
61
 
  if (thd->error_inject_value == (uint)value)
 
60
  Session *session= current_session;
 
61
  if (session->error_inject_value == (uint)value)
62
62
  {
63
 
    thd->error_inject_value= 0;
 
63
    session->error_inject_value= 0;
64
64
    return 1;
65
65
  }
66
66
  return 0;
102
102
  error inject value instead of a code used by debug macros.
103
103
*/
104
104
#define SET_ERROR_INJECT_VALUE(x) \
105
 
  current_thd->error_inject_value= (x)
 
105
  current_session->error_inject_value= (x)
106
106
#define ERROR_INJECT_ACTION(code, action) \
107
107
  (check_and_unset_keyword(code) ? ((action), 0) : 0)
108
108
#define ERROR_INJECT(code) \