Minor fixes for priority handling
authorHannes Reinecke <hare@suse.de>
Tue, 16 Jul 2013 07:13:03 +0000 (09:13 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 16 Jul 2013 19:50:42 +0000 (21:50 +0200)
When no prio handler was selected we should be setting the
priority to 'PRIO_UNDEF'.
Also fixup a typo in the logging message when selecting
the default prioritizer.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/discovery.c
libmultipath/propsel.c

index 7ca7cf9..82f086b 100644 (file)
@@ -958,6 +958,7 @@ get_prio (struct path * pp)
                select_prio(pp);
                if (!prio_selected(p)) {
                        condlog(3, "%s: no prio selected", pp->dev);
+                       pp->priority = PRIO_UNDEF;
                        return 1;
                }
        }
index 19ef180..e54b94e 100644 (file)
@@ -447,7 +447,7 @@ select_prio (struct path * pp)
        prio_get(p, DEFAULT_PRIO, DEFAULT_PRIO_ARGS);
        condlog(3, "%s: prio = %s (internal default)",
                pp->dev, DEFAULT_PRIO);
-       condlog(3, "%s: prio = %s (internal default)",
+       condlog(3, "%s: prio args = %s (internal default)",
                pp->dev, DEFAULT_PRIO_ARGS);
        return 0;
 }