]> sourceware.org Git - lvm2.git/commitdiff
lvmlockd: remove noisy log_debug
authorDavid Teigland <teigland@redhat.com>
Thu, 21 Jan 2016 20:37:15 +0000 (14:37 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 21 Jan 2016 20:37:15 +0000 (14:37 -0600)
The debug message appeared even when lvmlockd was not used,
and the lockd operation was simply being skipped.

lib/locking/lvmlockd.c

index 1af40b7520bacf4d3ff28eb2a5fa537687a441cc..a33544cbc4d55d36351b006efc7595f591c6d7d7 100644 (file)
@@ -1702,10 +1702,8 @@ int lockd_vg(struct cmd_context *cmd, const char *vg_name, const char *def_mode,
         * passed back to lockd_vg() for the corresponding unlock.
         */
        if (def_mode && !strcmp(def_mode, "un")) {
-               if (prev_state & LDST_FAIL) {
-                       log_debug("VG %s unlock skipped: lockd_state is failed", vg_name);
+               if (prev_state & LDST_FAIL)
                        return 1;
-               }
 
                mode = "un";
                goto req;
This page took 0.043026 seconds and 5 git commands to generate.