~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/scheduler.cc

  • Committer: Monty Taylor
  • Date: 2011-03-10 18:09:05 UTC
  • mfrom: (2225.2.2 refactor)
  • mto: This revision was merged to the branch mainline in revision 2228.
  • Revision ID: mordred@inaugust.com-20110310180905-ttx05t7q7ff6nl7c
Merge Olad: Refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <algorithm>
23
23
 
24
 
#include "drizzled/plugin/scheduler.h"
25
 
 
26
 
#include "drizzled/gettext.h"
27
 
#include "drizzled/errmsg_print.h"
 
24
#include <drizzled/errmsg_print.h>
 
25
#include <drizzled/gettext.h>
 
26
#include <drizzled/plugin/scheduler.h>
28
27
 
29
28
namespace drizzled
30
29
{
58
57
 
59
58
  if (iter != all_schedulers.end())
60
59
  {
61
 
    errmsg_printf(ERRMSG_LVL_ERROR,
 
60
    errmsg_printf(error::ERROR,
62
61
                  _("Attempted to register a scheduler %s, but a scheduler "
63
62
                    "has already been registered with that name.\n"),
64
63
                    sched->getName().c_str());
95
94
    return false;
96
95
  }
97
96
 
98
 
  errmsg_printf(ERRMSG_LVL_WARN,
 
97
  errmsg_printf(error::WARN,
99
98
                _("Attempted to configure %s as the scheduler, which did "
100
99
                  "not exist.\n"), name.c_str());
101
100
  return true;