]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/dpdk: destroy fd in do_request 32690/head
authorChunsong Feng <fengchunsong@huawei.com>
Fri, 27 Dec 2019 11:28:30 +0000 (19:28 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 17 Jan 2020 02:55:07 +0000 (10:55 +0800)
commit3063ddcdb52603b67d5ac0bd3802c388c1bfe170
tree68676c49c4c94238858cc343995e420b363d2c95
parent1c7742d141c60771775a696ff5fe828ce821365e
msg/async/dpdk: destroy fd in do_request

when testing with dpdk,there is an error log "Event (0xaaaaff889288
nevent = 5000 time_id = 21540). delete_time_event id = 21471 not found",
raised in EventCenter::delete_time_event. In EventCenter::process_time_events,
the fd in event_map is deleted, but fd is not destroyed, and then fd will
not found in delete_time_event. Destroy fd in do_request to ensure
that fd is zero, and then delete_time_event (fd) will not be called.

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
src/msg/async/dpdk/TCP.h