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:
Jason Dillaman 2017-01-09 21:45:41 -05:00 committed by GitHub
commit 59c0108241

View File

@ -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();
}
};