]> sourceware.org Git - lvm2.git/commitdiff
lvmetad: Drop active connection upon lvmetad_set_active(0).
authorPetr Rockai <prockai@redhat.com>
Sun, 8 Jun 2014 23:55:33 +0000 (01:55 +0200)
committerPetr Rockai <prockai@redhat.com>
Sun, 8 Jun 2014 23:55:33 +0000 (01:55 +0200)
lib/cache/lvmetad.c

index c03590e20370aee4bfe07189b8f4664f1c47dcbd..7896dddd83c0b89185b64a203029c31a4d29f200 100644 (file)
@@ -101,6 +101,8 @@ int lvmetad_active(void)
 void lvmetad_set_active(int active)
 {
        _lvmetad_use = active;
+       if (!active && lvmetad_active())
+               lvmetad_disconnect();
 }
 
 /*
This page took 0.029278 seconds and 5 git commands to generate.