1
0
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:
Petr Rockai 2014-06-09 01:55:33 +02:00
parent 488f308527
commit 1824a781db

2
lib/cache/lvmetad.c vendored
View File

@ -101,6 +101,8 @@ int lvmetad_active(void)
void lvmetad_set_active(int active)
{
_lvmetad_use = active;
if (!active && lvmetad_active())
lvmetad_disconnect();
}
/*