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>
if (le)
le->metablob.add_import_dir(dir);
- int num_imported = 0;
-
// take all waiters on this dir
// NOTE: a pass of imported data is guaranteed to get all of my waiters because
// a replica's presense in my cache implies/forces it's presense in authority's.