]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: fix potential race condition if notify immediately fails 22188/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 7 May 2018 17:23:43 +0000 (10:23 -0700)
committerKefu Chai <kchai@redhat.com>
Wed, 23 May 2018 16:18:16 +0000 (00:18 +0800)
Fixes: http://tracker.ceph.com/issues/23966
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit cc06fbab08ef5b7f1b18f2af333c019ad86de03d)

src/librados/IoCtxImpl.cc

index 17bf91a1d3de8778b3af2212fe372cd8ddbb9da6..42c8a98f4b5b8f8f303be9ec4c12ad077ee7db69 100644 (file)
@@ -1521,6 +1521,7 @@ int librados::IoCtxImpl::notify(const object_t& oid, bufferlist& bl,
   } else {
     ldout(client->cct, 10) << __func__ << " failed to initiate notify, r = "
                           << r << dendl;
+    notify_finish_cond.wait();
   }
 
   objecter->linger_cancel(linger_op);