]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix CEPH_CAP_FILE_WR caps reference leakage in _write()
authorXiubo Li <xiubli@redhat.com>
Tue, 14 Feb 2023 11:35:14 +0000 (19:35 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 11 Apr 2023 02:27:10 +0000 (10:27 +0800)
commitb5b837182858018c2d6d4985987798b7a48a548d
treebefa32f4d9457bb0883cbdc1c7325deeb4f294a0
parent4e843ad78b26e6b33581ca2689b1cd1cd368fc3a
client: fix CEPH_CAP_FILE_WR caps reference leakage in _write()

If the __setattrx() fails it will leave the CEPH_CAP_FILE_WR caps
reference kept.

Fixes: https://tracker.ceph.com/issues/58717
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 93d69dd77f10b901cd0c7b713bf71acb365e5271)
src/client/Client.cc