]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix debug build of OpsLogFile 43751/head
authorCasey Bodley <cbodley@redhat.com>
Sun, 31 Oct 2021 00:26:21 +0000 (20:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sun, 31 Oct 2021 00:29:26 +0000 (20:29 -0400)
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 <cbodley@redhat.com>
src/rgw/rgw_log.h

index 5ee411e8cfaec57ba1dfaa1bcc012f9362fe4be2..a087aa130980625a9d62849dd21d1679e013b107 100644 (file)
@@ -169,7 +169,7 @@ class OpsLogFile : public JsonOpsLogSink, public Thread, public DoutPrefixProvid
   ceph::mutex flush_mutex = ceph::make_mutex("OpsLogFile_flush");
   std::vector<bufferlist> log_buffer;
   std::vector<bufferlist> flush_buffer;
-  std::condition_variable cond_flush;
+  ceph::condition_variable cond_flush;
   std::ofstream file;
   bool stopped;
   uint64_t data_size;