]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/cache/pwl: supplement error handle
authorYin Congmin <congmin.yin@intel.com>
Mon, 5 Jul 2021 07:43:56 +0000 (15:43 +0800)
committerDeepika Upadhyay <dupadhya@redhat.com>
Fri, 5 Nov 2021 09:22:01 +0000 (14:52 +0530)
commit0cf849364867782f5fc06be211041757b601b858
tree6a5bd03bb46fd03e5863a2bcf9a73344adc987d0
parent29fcd96277b8ec3356e421c6267c532c0c2dcc68
librbd/cache/pwl: supplement error handle

add return after error handling and clean bdev before return

trivial fix:
<<<<<<< head
      on_finish->complete(-1);
      return;
=======
      on_finish->complete(r);
      return false;
>>>>>>> 2cd9881116a (librbd/cache/pwl: supplement error handle)

picked second patch
Signed-off-by: Yin Congmin <congmin.yin@intel.com>
(cherry picked from commit 2cd9881116a47794051615fcf0a95a5e879ae7e6)
src/librbd/cache/pwl/AbstractWriteLog.cc
src/librbd/cache/pwl/ssd/WriteLog.cc