From: Jianpeng Ma Date: Tue, 20 Nov 2018 01:56:33 +0000 (+0800) Subject: common/shared_cache: use notify_all rather than notify_one X-Git-Tag: v14.1.0~818^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bee1073cc388c6de59df443b5ca818896e5f6310;p=ceph.git common/shared_cache: use notify_all rather than notify_one This bug introduced from 362e3dbaa4da521a8d3. Signed-off-by: Jianpeng Ma --- diff --git a/src/common/shared_cache.hpp b/src/common/shared_cache.hpp index 92cd8b7a8f93..9fb31927e644 100644 --- a/src/common/shared_cache.hpp +++ b/src/common/shared_cache.hpp @@ -87,7 +87,7 @@ private: if (i != weak_refs.end() && i->second.second == valptr) { weak_refs.erase(i); } - cond.notify_one(); + cond.notify_all(); } class Cleanup {