20
20
#include "MonmapMonitor.h"
21
21
#include "messages/MMonElection.h"
27
27
#define dout_prefix _prefix(mon, epoch)
28
28
static ostream& _prefix(Monitor *mon, epoch_t epoch) {
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 << ") ";