]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: should release the rwlock before waiting 29686/head
authorKefu Chai <kchai@redhat.com>
Thu, 15 Aug 2019 11:33:15 +0000 (19:33 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Aug 2019 11:50:35 +0000 (19:50 +0800)
this addresses a regresssion introduced by 20b1ac6e

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osdc/Objecter.cc

index ec0126a0bc65422641786dfe9cc5301209cdeb49..b073f42bc48e6fe1d0dcae3a7bd28b1f7b14988e 100644 (file)
@@ -1925,6 +1925,7 @@ void Objecter::wait_for_osd_map()
   std::unique_lock mlock{lock};
   C_SafeCond *context = new C_SafeCond(lock, cond, &done, NULL);
   waiting_for_map[0].push_back(pair<Context*, int>(context, 0));
+  l.unlock();
   cond.wait(mlock, [&done] { return done; });
 }