1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmlockd: remove noisy log_debug

The debug message appeared even when lvmlockd was not used,
and the lockd operation was simply being skipped.
This commit is contained in:
David Teigland 2016-01-21 14:37:15 -06:00
parent 55056c2d16
commit dc388e0c7a

View 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. * passed back to lockd_vg() for the corresponding unlock.
*/ */
if (def_mode && !strcmp(def_mode, "un")) { if (def_mode && !strcmp(def_mode, "un")) {
if (prev_state & LDST_FAIL) { if (prev_state & LDST_FAIL)
log_debug("VG %s unlock skipped: lockd_state is failed", vg_name);
return 1; return 1;
}
mode = "un"; mode = "un";
goto req; goto req;