]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: always add one new capsnap if Fb is used and Fw is not used
authorXiubo Li <xiubli@redhat.com>
Mon, 8 May 2023 05:48:43 +0000 (13:48 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Jul 2023 02:21:22 +0000 (10:21 +0800)
commit21b4c3f498e39fa8203e3187435c23b285a3258f
treed991e71c2af84c76d4136028efaddb8af38b07dd
parentd7c46b9268e3c91d1850241f8c38735e60f34612
client: always add one new capsnap if Fb is used and Fw is not used

If we set the 'writing' to 1 when the 'Fb' caps is used then later
if we have any dirty caps it will be skipped and will reuse the
existing capsnap, which is incorrect.

At the same time trigger to flush the buffer when making snapshot
and if the Fb is being used.

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