mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #29686 from tchaikov/wip-osdc-wait-for-osdmap
osdc: should release the rwlock before waiting Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
441ed26c9b
@ -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; });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user