1
0
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:
David Teigland 2015-10-09 12:20:22 -05:00
parent 1f30ba6178
commit 21a8ac0cd3

2
lib/cache/lvmetad.c vendored
View File

@ -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");