]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: remove inappropriate initialization of num_imported 51699/head
authorYongseok Oh <yongseok.oh@linecorp.com>
Mon, 20 Mar 2023 10:24:25 +0000 (19:24 +0900)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 23 May 2023 08:58:15 +0000 (14:28 +0530)
commit7ca217456f1ac07dc959b4c731285f56da49841f
treeb35b4b8ccdcf67f1c3ebee1c12fb1a1614dac47f
parent2ffb048ad07fc7501f93fc1ff4a3d9b67288cd42
mds: remove inappropriate initialization of num_imported

The variable num_imported is being passed by reference. Additionally,
the decode_import_dir() function is invoked from handle_export_dir(),
where num_imported is initialized and passed by reference.
Therefore, there is no need to initialize it again within
the decode_import_dir() function.

fixes: https://tracker.ceph.com/issues/59107

Signed-off-by: Yongseok Oh <yongseok.oh@linecorp.com>
(cherry picked from commit 01d477eae40cbb543375bed8d955ca07c09ad959)
src/mds/Migrator.cc