librbd: allow ProgressCtx::update_progress to cancel maintenance ops

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2019-07-15 22:12:08 -04:00
parent cfb69b81e3
commit 026df758ae

View File

@ -93,7 +93,10 @@ void AsyncObjectThrottle<T>::start_next_op() {
done = true;
}
if (m_prog_ctx != NULL) {
m_prog_ctx->update_progress(ono, m_end_object_no);
r = m_prog_ctx->update_progress(ono, m_end_object_no);
if (r < 0) {
m_ret = r;
}
}
}
}