]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/api/migration: get_source_spec should read spec from OSD
authorJason Dillaman <dillaman@redhat.com>
Mon, 16 Nov 2020 23:12:58 +0000 (18:12 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 17 Nov 2020 01:25:16 +0000 (20:25 -0500)
commit0d073fed8103e2c6558b243f59cdffd6c78665ea
tree5b888f8023367b35514a943dea12d57d733d05df
parentdad5d304d6bb33e4f48d927c067fd6cad9e72416
librbd/api/migration: get_source_spec should read spec from OSD

In the case where the migration state is EXECUTED, the
ImageCtx::migration_info struct is never populated. Therefore, fallback
to reading from the OSD if the struct is empty.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc