From: Casey Bodley Date: Mon, 7 Mar 2022 20:10:07 +0000 (-0500) Subject: rgw: initialize RGWIndexCompletionManager thread after related members X-Git-Tag: v17.2.6~89^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F49092%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 (cherry picked from commit 112c2608750cf8db2c52c8e89f5897080501f6bd) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 5558af8bec39..1da53ddbdf4b 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};