From 662d29918d49a9b58268ad360d87aa860b2f96e5 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Sat, 30 Oct 2021 20:26:21 -0400 Subject: [PATCH] rgw: fix debug build of OpsLogFile can't use ceph::mutex locks with std::condition_variable::wait() in debug builds. use the ceph::condition_variable wrapper instead Signed-off-by: Casey Bodley --- src/rgw/rgw_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 5ee411e8cfaec..a087aa1309806 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -169,7 +169,7 @@ class OpsLogFile : public JsonOpsLogSink, public Thread, public DoutPrefixProvid ceph::mutex flush_mutex = ceph::make_mutex("OpsLogFile_flush"); std::vector log_buffer; std::vector flush_buffer; - std::condition_variable cond_flush; + ceph::condition_variable cond_flush; std::ofstream file; bool stopped; uint64_t data_size; -- 2.39.5