]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/shared_cache: use notify_all rather than notify_one 25150/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 20 Nov 2018 01:56:33 +0000 (09:56 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 20 Nov 2018 02:03:35 +0000 (10:03 +0800)
This bug introduced from 362e3dbaa4da521a8d3.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/shared_cache.hpp

index 92cd8b7a8f9302e9a4d62379f7015f55e3e0f756..9fb31927e6442e744ec22892221904feceb4b39e 100644 (file)
@@ -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 {