librados: call aio_operate() with lock held

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-12-30 17:04:22 -08:00
parent 949f24d560
commit 68ec8d8ee9

View File

@ -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;