Fixes the Coverity Scan Report:
CID
1412616 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member worker is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
worker->join();
}
delete worker;
- worker = NULL;
+ worker = nullptr;
}
void *RGWReshard::ReshardWorker::entry() {
void stop();
};
- ReshardWorker *worker;
+ ReshardWorker *worker = nullptr;
std::atomic<bool> down_flag = { false };
string get_logshard_key(const string& tenant, const string& bucket_name);