mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Merge pull request #12849 from xiexingguo/xxg-wip-fix-compile-crash
librados: fix compile errors from simplified aio completions Reviewed-by: Jason Dillaman <dillaman@redhat.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
commit
59c0108241
@ -194,16 +194,12 @@ struct C_aio_selfmanaged_snap_op_Complete : public Context {
|
||||
virtual void finish(int r) {
|
||||
c->lock.Lock();
|
||||
c->rval = r;
|
||||
c->ack = true;
|
||||
c->safe = true;
|
||||
c->complete = true;
|
||||
c->cond.Signal();
|
||||
|
||||
if (c->callback_complete) {
|
||||
if (c->callback_complete || c->callback_safe) {
|
||||
client->finisher.queue(new librados::C_AioComplete(c));
|
||||
}
|
||||
if (c->callback_safe) {
|
||||
client->finisher.queue(new librados::C_AioSafe(c));
|
||||
}
|
||||
c->put_unlock();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user