mirror of
https://github.com/ceph/ceph
synced 2025-01-01 00:22:25 +00:00
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:
commit
96b3a8a5ee
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user