]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration/NativeFormat: refactor source spec parsing
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jul 2024 19:11:51 +0000 (21:11 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 10 Aug 2024 20:56:20 +0000 (22:56 +0200)
commit95b94f9341bc6e0d1f9ba1ed4b4276a6e49edf02
tree42474655c3d10b7bbe698c3c513f1f57b5ba8ade
parent7e6a2afe235f3ed7a390b398ea07a5d4433ee460
librbd/migration/NativeFormat: refactor source spec parsing

In preparation for not instantiating NativeFormat and losing a copy of
the source spec JSON object in m_json_object, refactor the parsing code
to use only const methods (which std::map's operator[] isn't) and local
variables where possible.

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