Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(8.0) PS-9621: Initialization of std::atomic_flag caller_active_ in Percona Telemetry component is not compliant with the standard #5529

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/percona_telemetry/worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Worker::Worker(Config &config, Storage &storage, DataProvider &data_provider,
storage_(storage),
data_provider_(data_provider),
logger_(logger),
stop_worker_thd_(false),
caller_active_(ATOMIC_FLAG_INIT) {}
stop_worker_thd_(false) {}

bool Worker::start() {
std::thread thd(&Worker::worker_thd_fn, this);
Expand Down
2 changes: 1 addition & 1 deletion components/percona_telemetry/worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Worker {
DataProvider &data_provider_;
Logger &logger_;
std::atomic_bool stop_worker_thd_;
std::atomic_flag caller_active_;
std::atomic_flag caller_active_ = ATOMIC_FLAG_INIT;
std::condition_variable cv_;

std::thread thd_;
Expand Down
Loading