Whamcloud - gitweb
LU-10764 hsm: Correct debug print in ct_archive 09/31509/3
authorOleg Drokin <oleg.drokin@intel.com>
Mon, 5 Mar 2018 06:15:50 +0000 (01:15 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Mar 2018 13:55:22 +0000 (13:55 +0000)
As is it's never printed due to misplaced curly bracket

Test-Parameters: trivial
Change-Id: I15c60f2ec44aaaa723945068d576dc59e04a2b95
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/31509
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
lustre/utils/lhsmtool_posix.c

index 05036af..2ad9f3f 100644 (file)
@@ -1089,10 +1089,10 @@ static int ct_archive(const struct hsm_action_item *hai, const long hal_flags)
                                                 src);
                                        rcf = rcf ? rcf : -errno;
                                        goto fini_minor;
+                               }
                                /* unlink old symlink done */
                                CT_TRACE("remove old symlink '%s' pointing"
                                         " to '%s'", src, buf);
-                               }
                        } else {
                                /* symlink already ok */
                                CT_TRACE("symlink '%s' already pointing"