mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +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_)
|
: cct(cct_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
~C_ContextsBase() override {
|
||||||
|
for (auto c : contexts) {
|
||||||
|
delete c;
|
||||||
|
}
|
||||||
|
}
|
||||||
void add(ContextType* c) {
|
void add(ContextType* c) {
|
||||||
contexts.push_back(c);
|
contexts.push_back(c);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user