]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Event: no need to delete_file_Event when deconstruct
authorHaomai Wang <haomai@xsky.com>
Tue, 8 Mar 2016 07:51:02 +0000 (15:51 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 11 Jul 2016 14:43:00 +0000 (22:43 +0800)
Since we are going to close all epoll and cleanup resources, no need to delete
notify fd resource. And another reason is "delete_file_event" doesn't expect
other threads to call

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/Event.cc

index 5e436d5a20c7b9305bf7126ce6b3ac42064a93c3..2e5d2ef71659e6691413e2686e7d80b052339e4e 100644 (file)
@@ -126,10 +126,8 @@ EventCenter::~EventCenter()
   }
   assert(time_events.empty());
 
-  if (notify_receive_fd >= 0) {
-    delete_file_event(notify_receive_fd, EVENT_READABLE);
+  if (notify_receive_fd >= 0)
     ::close(notify_receive_fd);
-  }
   if (notify_send_fd >= 0)
     ::close(notify_send_fd);