]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: call aio_operate() with lock held
authorSage Weil <sage@newdream.net>
Sat, 31 Dec 2011 01:04:22 +0000 (17:04 -0800)
committerSage Weil <sage@newdream.net>
Sat, 31 Dec 2011 01:04:22 +0000 (17:04 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/librados.cc

index b937e8f19403d4f2064ffe8e45a91f4c838b8938..51eb5b3f810e19e7b48ad6edde69facc62440095 100644 (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;