mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 18:55:19 +03:00
poll daemon: only call lvmetad_connect when needed
When lvm is not using lvmetad, the lvmetad_connect() in the forked polling process is not needed and was generating unwanted warnings.
This commit is contained in:
parent
11dd362454
commit
4d095c2fbb
@ -597,7 +597,7 @@ static int _poll_daemon(struct cmd_context *cmd, struct poll_operation_id *id,
|
||||
/* FIXME Use wait_event (i.e. interval = 0) and */
|
||||
/* fork one daemon per copy? */
|
||||
|
||||
if (daemon_mode == 1) {
|
||||
if ((daemon_mode == 1) && find_config_tree_bool(cmd, global_use_lvmetad_CFG, NULL)) {
|
||||
if (!lvmetad_connect(cmd))
|
||||
log_warn("WARNING: lvm polling process %d cannot connect to lvmetad.", getpid());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user