1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-24 06:04:19 +03:00

Building without the '--enable-cmirrord' option means that

CMIRRORD_PIDFILE is not defined.  This makes the build fail.
Therefore, we need to conditionalize the check for cmirrord
based on if CMIRRORD_PIDFILE is defined.
This commit is contained in:
Jonathan Earl Brassow 2010-07-21 15:21:24 +00:00
parent 2dcdb807f8
commit 9ba875e502

View File

@ -528,10 +528,15 @@ static int _mirrored_target_present(struct cmd_context *cmd,
* otherwise, the kernel module will fail to make
* contact.
*/
#ifdef CMIRRORD_PIDFILE
if (!dm_daemon_is_running(CMIRRORD_PIDFILE)) {
log_verbose("Cluster mirror log daemon is not running");
_mirror_attributes &= ~MIRROR_LOG_CLUSTERED;
}
#else
log_verbose("Cluster mirror log daemon not included in build");
_mirror_attributes &= ~MIRROR_LOG_CLUSTERED;
#endif
}
*attributes = _mirror_attributes;
}