]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize RGWIndexCompletionManager thread after related members 49092/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 7 Mar 2022 20:10:07 +0000 (15:10 -0500)
committerCory Snyder <csnyder@1111systems.com>
Wed, 22 Feb 2023 17:47:30 +0000 (12:47 -0500)
resolves valgrind issues about RGWIndexCompletionManager::process()
using uninitialized memory

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 112c2608750cf8db2c52c8e89f5897080501f6bd)

src/rgw/rgw_rados.cc

index 5558af8bec399ae48e665cdc525e505346e36e6f..1da53ddbdf4be216c400ae1d4db522600f4f0b13 100644 (file)
@@ -811,11 +811,10 @@ class RGWIndexCompletionManager {
   std::vector<set<complete_op_data*>> completions;
   std::vector<complete_op_data*> retry_completions;
 
-  std::thread retry_thread;
   std::condition_variable cond;
   std::mutex retry_completions_lock;
-
   bool _stop{false};
+  std::thread retry_thread;
 
   std::atomic<int> cur_shard {0};