]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgwfile: fix lock_guard decl
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 2 Nov 2023 17:45:12 +0000 (13:45 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 2 Nov 2023 17:46:39 +0000 (13:46 -0400)
Reported by Leonid Usov <leonid.usov@ibm.com>.

Fixes: https://tracker.ceph.com/issues/63409
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index 44ccc56e6d840cb7412dea604e0ad4b530bfadf1..6130019df032cd6ca4f1b92e1c1aed4b3fa7733a 100644 (file)
@@ -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;
     }