]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Tue, 30 Jul 2024 21:05:51 +0000 (23:05 +0200)
commit3bbf1f5ddbaa4a8c252d70a384e23852f0c537c1
tree11604df0cd11772beefc6450bfa64608a32ae1b2
parent1ba9a32598f50073b574b4649736d76b678a1c58
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>
src/librbd/migration/NativeFormat.cc
src/librbd/migration/NativeFormat.h