~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/rpl_reporting.h

  • Committer: Monty Taylor
  • Date: 2008-07-05 22:08:52 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705220852-cqd9t6tfkhvlcf73
Removed HAVE_LONG_LONG, as this is now assumed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; version 2 of the License.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 
 */
19
 
 
20
 
#ifndef DRIZZLED_RPL_REPORTING_H
21
 
#define DRIZZLED_RPL_REPORTING_H
 
1
#ifndef RPL_REPORTING_H
 
2
#define RPL_REPORTING_H
22
3
 
23
4
/**
24
5
   Maximum size of an error message from a slave thread.
56
37
                        printf() format.
57
38
  */
58
39
  void report(loglevel level, int err_code, const char *msg, ...) const
59
 
    __attribute__((format(printf, 4, 5)));
 
40
    ATTRIBUTE_FORMAT(printf, 4, 5);
60
41
 
61
42
  /**
62
43
     Clear errors. They will not show up under <code>SHOW SLAVE
84
65
    }
85
66
 
86
67
    /** Error code */
87
 
    uint32_t number;
 
68
    uint32 number;
88
69
    /** Error message */
89
70
    char message[MAX_SLAVE_ERRMSG];
90
71
  };
100
81
  char const *const m_thread_name;
101
82
};
102
83
 
103
 
#endif /* DRIZZLED_RPL_REPORTING_H */
 
84
#endif // RPL_REPORTING_H
 
85