From: Haomai Wang Date: Tue, 8 Mar 2016 07:51:02 +0000 (+0800) Subject: Event: no need to delete_file_Event when deconstruct X-Git-Tag: ses5-milestone5~429^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ee2652379c00de6e26f836e5b3068ff0e6b1dbd;p=ceph.git Event: no need to delete_file_Event when deconstruct 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 --- diff --git a/src/msg/async/Event.cc b/src/msg/async/Event.cc index 5e436d5a20c..2e5d2ef7165 100644 --- a/src/msg/async/Event.cc +++ b/src/msg/async/Event.cc @@ -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);