fix: some abort-related issues
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
eda6cf11ef
commit
2dd372600c
4 changed files with 10 additions and 4 deletions
|
@ -796,10 +796,12 @@ class InstanceStaging : public Task {
|
|||
// FIXME/TODO: add ability to abort during instance commit retries
|
||||
bool abort() override
|
||||
{
|
||||
if (m_child && m_child->canAbort())
|
||||
return m_child->abort();
|
||||
if (!canAbort())
|
||||
return false;
|
||||
|
||||
return false;
|
||||
m_child->abort();
|
||||
|
||||
return Task::abort();
|
||||
}
|
||||
bool canAbort() const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue