]> git.apps.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>
Mon, 22 May 2023 09:37:41 +0000 (17:37 +0800)
commit6262351f7da9413d8306a6f1765ecab1f0ab912e
tree89815252f6166ed29f31caf65ba7bdcb5d2903a0
parente85f582ed91770dfcb8bd5e5d254887edafce60f
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>
src/client/Client.cc