master - lvmlockd: remove noisy log_debug
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dc388e0c7af967568527dd1bccb0361ca668f09b Commit: dc388e0c7af967568527dd1bccb0361ca668f09b Parent: 55056c2d16a6cb6e0ce5b7179d62d4dc28cd790d Author: David Teigland <[email protected]> AuthorDate: Thu Jan 21 14:37:15 2016 -0600 Committer: David Teigland <[email protected]> CommitterDate: Thu Jan 21 14:37:15 2016 -0600
lvmlockd: remove noisy log_debug
The debug message appeared even when lvmlockd was not used, and the lockd operation was simply being skipped.
--- lib/locking/lvmlockd.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
lib/locking/lvmlockd.c +1 -3
@@ -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;