]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid EUCLEAN error after "rbd rm" is interrupted 50130/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:44:08 +0000 (16:44 +0100)
commit6e702938c5cea3645b38cd45f9ce9f1391aa0b8e
treed0b505249549661f61cd58f8dc09ee8f61f9dfc1
parent409034255a98e46b7d896a93c335b11a7a7f9e9e
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