Skip to content

Commit 112c260

Browse files
committed
rgw: initialize RGWIndexCompletionManager thread after related members
resolves valgrind issues about RGWIndexCompletionManager::process() using uninitialized memory Signed-off-by: Casey Bodley <[email protected]>
1 parent e72b651 commit 112c260

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rgw/rgw_rados.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,11 +811,10 @@ class RGWIndexCompletionManager {
811811
std::vector<set<complete_op_data*>> completions;
812812
std::vector<complete_op_data*> retry_completions;
813813

814-
std::thread retry_thread;
815814
std::condition_variable cond;
816815
std::mutex retry_completions_lock;
817-
818816
bool _stop{false};
817+
std::thread retry_thread;
819818

820819
std::atomic<int> cur_shard {0};
821820

0 commit comments

Comments
 (0)