From: Wei Jin Date: Mon, 9 Jan 2017 11:10:07 +0000 (+0800) Subject: msg/async: clean idx X-Git-Tag: v12.0.0~226^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23daf45c8d4fab706d9594450fe87e8d7a350366;p=ceph-ci.git msg/async: clean idx the initial value is misleading as event center's id was changed to the index in the worker vector. Signed-off-by: Wei Jin --- diff --git a/src/msg/async/Event.h b/src/msg/async/Event.h index d83e01f5c88..5b210efe068 100644 --- a/src/msg/async/Event.h +++ b/src/msg/async/Event.h @@ -171,7 +171,7 @@ class EventCenter { int notify_send_fd; NetHandler net; EventCallbackRef notify_handler; - unsigned idx = 10000; + unsigned idx; AssociatedCenters *global_centers = nullptr; int process_time_events(); @@ -186,7 +186,7 @@ class EventCenter { external_num_events(0), driver(NULL), time_event_next_id(1), notify_receive_fd(-1), notify_send_fd(-1), net(c), - notify_handler(NULL) { } + notify_handler(NULL), idx(0) { } ~EventCenter(); ostream& _event_prefix(std::ostream *_dout);