mirror of
https://github.com/ceph/ceph
synced 2024-12-29 23:12:27 +00:00
librados: call aio_operate() with lock held
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
949f24d560
commit
68ec8d8ee9
@ -1782,6 +1782,8 @@ int librados::RadosClient::aio_operate(IoCtxImpl& io, const object_t& oid,
|
||||
Context *oncommit = new C_aio_Safe(c);
|
||||
|
||||
io.queue_aio_write(c);
|
||||
|
||||
Mutex::Locker l(lock);
|
||||
objecter->mutate(oid, io.oloc, *o, io.snapc, ut, 0, onack, oncommit, &c->objver);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user