diff options
author | David Teigland <teigland@redhat.com> | 2015-10-09 12:20:22 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-10-09 12:20:22 -0500 |
commit | 21a8ac0cd3a392feaa049ab509c4727eee548d6b (patch) | |
tree | 563c73b2a023d65cea1c497c53259c3bf8a3f6d5 | |
parent | 1f30ba6178df6c3faac06328f17158f549b9d4f7 (diff) | |
download | lvm2-21a8ac0cd3a392feaa049ab509c4727eee548d6b.tar.gz |
Fix segfault when lvmlockd is running but not lvmetad
If lvmlockd is running, lvmetad is configured (use_lvmetad=1),
but lvmetad is not running, then commands will seg fault
when trying to send a message to lvmetad.
The difference is lvmetad being "active", not just "used".
-rw-r--r-- | lib/cache/lvmetad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c index 20d20019f..c7f6ecb03 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -1683,7 +1683,7 @@ void lvmetad_validate_global_cache(struct cmd_context *cmd, int force) return; } - if (!lvmetad_used()) + if (!lvmetad_active()) return; log_debug_lvmetad("Validating global lvmetad cache"); |