From: Matt Benjamin Date: Thu, 2 Nov 2023 17:45:12 +0000 (-0400) Subject: rgwfile: fix lock_guard decl X-Git-Tag: v17.2.8~139^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b73055c146ad4dd6a7a8b61816e0057d717825df;p=ceph.git 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) --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 6fa4e817155c..9852d687703f 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; }