]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgwfile: fix lock_guard decl 59350/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 2 Nov 2023 17:45:12 +0000 (13:45 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 20 Aug 2024 12:49:19 +0000 (19:49 +0700)
Reported by Leonid Usov <leonid.usov@ibm.com>.

Fixes: https://tracker.ceph.com/issues/63409
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit f637e53eb62f4f940918a793865db6629fc21275)

src/rgw/rgw_file.cc

index 6fa4e817155ccfbf872f2077ed41aa2f2c7fd9ad..9852d687703f8101a575aac3a590a3e0a7a38984 100644 (file)
@@ -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;
     }