From accf8cfd22b25650b909f3ee2c2cd5f56203dc2e Mon Sep 17 00:00:00 2001 From: Gui Hecheng Date: Wed, 12 Apr 2017 16:46:49 +0800 Subject: [PATCH] Revert "rgw_file.h: fix potential data race condition" This reverts commit 3f7b411e1e304e8a6f295dc50b8cf3c6c496f4cc. Causing hung up due to double lock. Signed-off-by: Gui Hecheng --- src/rgw/rgw_file.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 42439bedf9548..3d671a0dee2f8 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -534,7 +534,6 @@ namespace rgw { } 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; -- 2.39.5