]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid EUCLEAN error after "rbd rm" is interrupted 50129/head
authorweixinwei <weixw3@lenovo.com>
Tue, 15 Nov 2022 07:31:06 +0000 (15:31 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 15 Feb 2023 15:42:58 +0000 (16:42 +0100)
commit771aef38dfbef2a1a62759a0d7da8f76d7bd5010
tree003efc5f100cf60db772e7ff8d165f03f3a8f1bb
parent22aea6b4b077eac022f794891bcba933fc3346b3
librbd: avoid EUCLEAN error after "rbd rm" is interrupted

If "rbd rm" command is interrupted (e.g. killed), the image in the
trash stays in cls::rbd::TRASH_IMAGE_STATE_MOVING state. Later, when
"rbd rm" command is rerun, EUCLEAN error is returned.

Fixes: https://tracker.ceph.com/issues/58060
Signed-off-by: weixinwei <weixw3@lenovo.com>
(cherry picked from commit 145ecb15c2b6b240a4abb5a0d81d081efeb98614)
src/librbd/api/Image.cc