~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/logging.cc

  • 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:
69
69
}
70
70
 
71
71
/* This gets called by plugin_foreach once for each loaded logging plugin */
72
 
static bool logging_pre_iterate (Session *thd, plugin_ref plugin,
 
72
static bool logging_pre_iterate (Session *session, plugin_ref plugin,
73
73
                                 void *p __attribute__ ((__unused__)))
74
74
{
75
75
  logging_t *l= plugin_data(plugin, logging_t *);
77
77
  /* call this loaded logging plugin's logging_pre function pointer */
78
78
  if (l && l->logging_pre)
79
79
  {
80
 
    if (l->logging_pre(thd))
 
80
    if (l->logging_pre(session))
81
81
    {
82
82
      /* TRANSLATORS: The leading word "logging" is the name
83
83
         of the plugin api, and so should not be translated. */
91
91
 
92
92
/* This is the logging_pre_do entry point.
93
93
   This gets called by the rest of the Drizzle server code */
94
 
bool logging_pre_do (Session *thd)
 
94
bool logging_pre_do (Session *session)
95
95
{
96
96
  bool foreach_rv;
97
97
 
98
 
  foreach_rv= plugin_foreach(thd,
 
98
  foreach_rv= plugin_foreach(session,
99
99
                             logging_pre_iterate,
100
100
                             DRIZZLE_LOGGER_PLUGIN,
101
101
                             NULL);
103
103
}
104
104
 
105
105
/* This gets called by plugin_foreach once for each loaded logging plugin */
106
 
static bool logging_post_iterate (Session *thd, plugin_ref plugin, 
 
106
static bool logging_post_iterate (Session *session, plugin_ref plugin, 
107
107
                                  void *p __attribute__ ((__unused__)))
108
108
{
109
109
  logging_t *l= plugin_data(plugin, logging_t *);
110
110
 
111
111
  if (l && l->logging_post)
112
112
  {
113
 
    if (l->logging_post(thd))
 
113
    if (l->logging_post(session))
114
114
    {
115
115
      /* TRANSLATORS: The leading word "logging" is the name
116
116
         of the plugin api, and so should not be translated. */
124
124
 
125
125
/* This is the logging_pre_do entry point.
126
126
   This gets called by the rest of the Drizzle server code */
127
 
bool logging_post_do (Session *thd)
 
127
bool logging_post_do (Session *session)
128
128
{
129
129
  bool foreach_rv;
130
130
 
131
 
  foreach_rv= plugin_foreach(thd,
 
131
  foreach_rv= plugin_foreach(session,
132
132
                             logging_post_iterate,
133
133
                             DRIZZLE_LOGGER_PLUGIN,
134
134
                             NULL);