From b73055c146ad4dd6a7a8b61816e0057d717825df Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 2 Nov 2023 13:45:12 -0400 Subject: [PATCH] rgwfile: fix lock_guard decl Reported by Leonid Usov . Fixes: https://tracker.ceph.com/issues/63409 Signed-off-by: Matt Benjamin (cherry picked from commit f637e53eb62f4f940918a793865db6629fc21275) --- src/rgw/rgw_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 6fa4e817155cc..9852d687703f8 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -347,7 +347,7 @@ namespace rgw { int rc = rgwlib.get_fe()->execute_req(&req); if ((rc == 0) && ((rc = req.get_ret()) == 0)) { - lock_guard(rgw_fh->mtx); + lock_guard guard(rgw_fh->mtx); rgw_fh->set_atime(real_clock::to_timespec(real_clock::now())); *bytes_read = req.nread; } -- 2.39.5