]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove inappropriate initialization of num_imported 50594/head
authorYongseok Oh <yongseok.oh@linecorp.com>
Mon, 20 Mar 2023 10:24:25 +0000 (19:24 +0900)
committerYongseok Oh <yongseok.oh@linecorp.com>
Mon, 15 May 2023 10:08:16 +0000 (19:08 +0900)
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>
src/mds/Migrator.cc

index 130ed08c1d21ffc665be0c4df1abe86752b284b6..8bd875c3450ef89c4ad7d948bf3c27a2efc570fc 100644 (file)
@@ -3379,8 +3379,6 @@ void Migrator::decode_import_dir(bufferlist::const_iterator& blp,
   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.