summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-01-21 14:37:15 -0600
committerDavid Teigland <teigland@redhat.com>2016-01-21 14:37:15 -0600
commitdc388e0c7af967568527dd1bccb0361ca668f09b (patch)
tree16e3d1a2391b29a0ccce77351085321060d54f9e
parent55056c2d16a6cb6e0ce5b7179d62d4dc28cd790d (diff)
downloadlvm2-dc388e0c7af967568527dd1bccb0361ca668f09b.tar.gz
lvmlockd: remove noisy log_debug
The debug message appeared even when lvmlockd was not used, and the lockd operation was simply being skipped.
-rw-r--r--lib/locking/lvmlockd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c
index 1af40b752..a33544cbc 100644
--- a/lib/locking/lvmlockd.c
+++ b/lib/locking/lvmlockd.c
@@ -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;