mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmetad: Drop active connection upon lvmetad_set_active(0).
This commit is contained in:
parent
488f308527
commit
1824a781db
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -101,6 +101,8 @@ int lvmetad_active(void)
|
|||||||
void lvmetad_set_active(int active)
|
void lvmetad_set_active(int active)
|
||||||
{
|
{
|
||||||
_lvmetad_use = active;
|
_lvmetad_use = active;
|
||||||
|
if (!active && lvmetad_active())
|
||||||
|
lvmetad_disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user