[multipathd] suppress the switch group message when no switch occured
authorroot <root@xa-s05.(none)>
Fri, 27 May 2005 10:20:50 +0000 (12:20 +0200)
committerroot <root@xa-s05.(none)>
Fri, 27 May 2005 10:20:50 +0000 (12:20 +0200)
multipathd/main.c

index 95c9ba086feb8255fc0013fad755fe43d564925f..f1905bfdefcc8fb35fedf7056a71b021b3d85ea9 100644 (file)
@@ -647,11 +647,11 @@ switch_pathgroup (struct multipath * mpp)
        select_path_group(mpp); /* sets mpp->nextpg */
        pgp = VECTOR_SLOT(mpp->pg, mpp->nextpg - 1);
        
-       if (pgp && pgp->status != PGSTATE_ACTIVE)
+       if (pgp && pgp->status != PGSTATE_ACTIVE) {
                dm_switchgroup(mpp->alias, mpp->nextpg);
-
-       log_safe(LOG_NOTICE, "%s: switch to path group #%i",
-                mpp->alias, mpp->nextpg);
+               log_safe(LOG_NOTICE, "%s: switch to path group #%i",
+                        mpp->alias, mpp->nextpg);
+       }
 }
 
 /*