Fix for:
CID
1399581 (#1 of 1): Data race condition (MISSING_LOCK)
missing_lock: Accessing this->state.atime without holding lock
rgw::RGWFileHandle.mtx. Elsewhere, "_ZN3rgw13RGWFileHandle5StateE.atime"
is accessed with rgw::RGWFileHandle.mtx held 2 out of 3 times
(2 of these accesses strongly imply that it is necessary).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
}
void set_times(real_time t) {
+ lock_guard guard(mtx);
state.ctime = real_clock::to_timespec(t);
state.mtime = state.ctime;
state.atime = state.ctime;