diff options
author | Ondrej Kozina <okozina@redhat.com> | 2015-05-22 14:55:42 +0200 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2015-06-08 16:01:40 +0200 |
commit | 7c312932215f8d70c4f6beb7db506898f4670cfe (patch) | |
tree | 8ef35d2e754cbff2e85c924a7fa8e294cf9890c5 | |
parent | b89ad7e2d4a5dd5e1947c2b14941f6a87d354451 (diff) | |
download | lvm2-7c312932215f8d70c4f6beb7db506898f4670cfe.tar.gz |
lvmetad.c: internal err on modifying global handle with open connection
lvmetad_init() should not be called with open connection to the daemon.
Doing so is considered to be an internall error within lvm2 code.
Such coincidence can't occur within current code. Let's assure us it won't
ever happen.
-rw-r--r-- | lib/cache/lvmetad.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c index 73a382c2f..dd1219b99 100644 --- a/lib/cache/lvmetad.c +++ b/lib/cache/lvmetad.c @@ -46,6 +46,10 @@ void lvmetad_init(struct cmd_context *cmd) if (!_lvmetad_use && !access(getenv("LVM_LVMETAD_PIDFILE") ? : LVMETAD_PIDFILE, F_OK)) log_warn("WARNING: lvmetad is running but disabled." " Restart lvmetad before enabling it!"); + + if (_lvmetad_connected) + log_debug(INTERNAL_ERROR "Refreshing lvmetad global handle while connection with the daemon is active"); + _lvmetad_cmd = cmd; } |