]> 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>
Sat, 10 Aug 2024 21:12:16 +0000 (23:12 +0200)
commitc8d06dd09ef14bf6d1156f4b684d4013cc3e3ffd
tree795c93ac4a968673047853c3fb9a42fc0c7ef0a4
parent79dc03abcdcb0272536411e7b109639064f691d1
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