~ubuntu-branches/ubuntu/precise/ceph/precise-proposed

« back to all changes in this revision

Viewing changes to src/mon/Elector.cc

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-04-25 10:09:05 UTC
  • mfrom: (1.1.3 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425100905-exm7dfvi2v5ick02
Tags: 0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "MonmapMonitor.h"
21
21
#include "messages/MMonElection.h"
22
22
 
23
 
#include "config.h"
 
23
#include "common/config.h"
24
24
 
25
25
#define DOUT_SUBSYS mon
26
26
#undef dout_prefix
27
27
#define dout_prefix _prefix(mon, epoch)
28
28
static ostream& _prefix(Monitor *mon, epoch_t epoch) {
29
 
  return *_dout << dbeginl
30
 
                << "mon." << mon->name << "@" << mon->rank
 
29
  return *_dout << "mon." << mon->name << "@" << mon->rank
31
30
                << (mon->is_starting() ? (const char*)"(starting)":(mon->is_leader() ? (const char*)"(leader)":(mon->is_peon() ? (const char*)"(peon)":(const char*)"(?\?)")))
32
31
                << ".elector(" << epoch << ") ";
33
32
}