]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: make SourceSpecBuilder::parse_source_spec() static
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jul 2024 13:06:33 +0000 (15:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 10 Aug 2024 20:56:20 +0000 (22:56 +0200)
commit05ed1999c9e86b5a370a77364ea65bb017daf13c
tree18a9b27b46c15af050bf5e4b060cc5111b5ec746
parent82afcf5da30ac0ab21b133da3544fd2813070622
librbd/migration: make SourceSpecBuilder::parse_source_spec() static

In preparation for divorcing NativeFormat from FormatInterface and
changing when/how src_image_ctx is created, make parse_source_spec()
independent of src_image_ctx.  The "invalid source-spec JSON" error is
duplicated by the "failed to parse migration source-spec" error, so
just get rid of the former to spare having to pass CephContext to
parse_source_spec().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit f172fb97be9a6129be7cdbaa87346dc6c8e8ccb1)
src/librbd/migration/OpenSourceImageRequest.cc
src/librbd/migration/OpenSourceImageRequest.h
src/librbd/migration/SourceSpecBuilder.cc
src/librbd/migration/SourceSpecBuilder.h