]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonOpRequest: add service-specific 'mark event' functions
authorJoao Eduardo Luis <joao@suse.de>
Wed, 10 Jun 2015 00:53:12 +0000 (01:53 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 17:06:07 +0000 (18:06 +0100)
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/MonOpRequest.h

index 2566ec088088fb64b6c923c60b9904dafb686340..0c5f78b76d6fc5feb61bad0bdf53d5a56962ac5d 100644 (file)
@@ -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;