From: Casey Bodley Date: Mon, 7 Mar 2022 20:10:07 +0000 (-0500) Subject: rgw: initialize RGWIndexCompletionManager thread after related members X-Git-Tag: v18.0.0~1285^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45212%2Fhead;p=ceph.git rgw: initialize RGWIndexCompletionManager thread after related members resolves valgrind issues about RGWIndexCompletionManager::process() using uninitialized memory Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 099276d4bd18..8d790b6a154d 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -811,11 +811,10 @@ class RGWIndexCompletionManager { std::vector> completions; std::vector retry_completions; - std::thread retry_thread; std::condition_variable cond; std::mutex retry_completions_lock; - bool _stop{false}; + std::thread retry_thread; std::atomic cur_shard {0};