]> git.apps.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>
Sun, 11 Aug 2024 17:14:00 +0000 (19:14 +0200)
commit0d80b6a14f08a2bb19fb714a44a0e8b898bfb7b5
tree0c7e745332ac406e41e32e13acc24fb3842e3a1a
parentef388009671d54e37960ede3842f1fd5f34885bb
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