mirror of
https://github.com/ceph/ceph
synced 2025-03-19 17:06:24 +00:00
Context: C_ContextsBase: delete enclosed contexts in dtor
there are chances that these contexts are never finished/completed Fixes: http://tracker.ceph.com/issues/20432 Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
08051155a4
commit
18ff5d6e59
@ -217,7 +217,11 @@ public:
|
||||
: cct(cct_)
|
||||
{
|
||||
}
|
||||
|
||||
~C_ContextsBase() override {
|
||||
for (auto c : contexts) {
|
||||
delete c;
|
||||
}
|
||||
}
|
||||
void add(ContextType* c) {
|
||||
contexts.push_back(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user