mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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".
This commit is contained in:
parent
1f30ba6178
commit
21a8ac0cd3
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user