Merge pull request #33643 from simon-rock/simon_destructor_of_session

mds : core dump if the resource is not released
This commit is contained in:
Yan, Zheng 2020-03-26 17:02:29 +08:00 committed by GitHub
commit 96b3a8a5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,11 +97,7 @@ public:
set_connection(std::move(con));
}
~Session() override {
if (state == STATE_CLOSED) {
item_session_list.remove_myself();
} else {
ceph_assert(!item_session_list.is_on_list());
}
ceph_assert(!item_session_list.is_on_list());
preopen_out_queue.clear();
}