From: Joao Eduardo Luis Date: Wed, 10 Jun 2015 00:53:12 +0000 (+0100) Subject: mon: MonOpRequest: add service-specific 'mark event' functions X-Git-Tag: v9.1.0~535^2~35 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=176d7969bc4c4e9e5e6ad54709624b00df1b9a73;p=ceph.git mon: MonOpRequest: add service-specific 'mark event' functions Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/MonOpRequest.h b/src/mon/MonOpRequest.h index 2566ec088088..0c5f78b76d6f 100644 --- a/src/mon/MonOpRequest.h +++ b/src/mon/MonOpRequest.h @@ -35,6 +35,31 @@ struct MonOpRequest : public TrackedOp { mark_event("monitor_zap"); } + void mark_svc_event(const string &service, const string &event) { + string s = service; + s.append(":").append(event); + mark_event(s); + } + + void mark_logmon_event(const string &event) { + mark_svc_event("logmon", event); + } + void mark_osdmon_event(const string &event) { + mark_svc_event("osdmon", event); + } + void mark_pgmon_event(const string &event) { + mark_svc_event("pgmon", event); + } + void mark_mdsmon_event(const string &event) { + mark_svc_event("mdsmon", event); + } + void mark_authmon_event(const string &event) { + mark_svc_event("authmon", event); + } + void mark_paxos_event(const string &event) { + mark_svc_event("paxos", event); + } + private: Message *request; utime_t dequeued_time;