]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: clean idx
authorWei Jin <wjin.cn@gmail.com>
Mon, 9 Jan 2017 11:10:07 +0000 (19:10 +0800)
committerWei Jin <wjin.cn@gmail.com>
Mon, 9 Jan 2017 11:10:07 +0000 (19:10 +0800)
the initial value is misleading as event center's id was changed to
the index in the worker vector.

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
src/msg/async/Event.h

index d83e01f5c883f9e060cd27c196e40b10d1b3219a..5b210efe0684efe969c482d0e06cff29df57fdf1 100644 (file)
@@ -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);