From f637e53eb62f4f940918a793865db6629fc21275 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 --- 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 44ccc56e6d8..6130019df03 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -345,7 +345,7 @@ namespace rgw { int rc = g_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