From 112c2608750cf8db2c52c8e89f5897080501f6bd Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 7 Mar 2022 15:10:07 -0500 Subject: [PATCH] rgw: initialize RGWIndexCompletionManager thread after related members resolves valgrind issues about RGWIndexCompletionManager::process() using uninitialized memory Signed-off-by: Casey Bodley --- src/rgw/rgw_rados.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 099276d4bd1..8d790b6a154 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}; -- 2.39.5