From: Matt Benjamin Date: Thu, 2 Nov 2023 17:45:12 +0000 (-0400) Subject: rgwfile: fix lock_guard decl X-Git-Tag: v19.0.0~190^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f637e53eb62f4f940918a793865db6629fc21275;p=ceph-ci.git rgwfile: fix lock_guard decl Reported by Leonid Usov . Fixes: https://tracker.ceph.com/issues/63409 Signed-off-by: Matt Benjamin --- 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; }