Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b0e761b authored by Zhu Lingshan's avatar Zhu Lingshan Committed by David Teigland
Browse files

dlm: print log message when cluster name is not set



Print a message when a cluster name is not specified by
the caller.  In this case the cluster name configured
for the dlm is used without any validation that it is
the cluster expected by the application.

Signed-off-by: default avatarZhu Lingshan <lszhu@suse.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 2ab93ae1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -453,6 +453,10 @@ static int new_lockspace(const char *name, const char *cluster,
			*ops_result = 0;
	}

	if (!cluster)
		log_print("dlm cluster name '%s' is being used without an application provided cluster name",
			  dlm_config.ci_cluster_name);

	if (dlm_config.ci_recover_callbacks && cluster &&
	    strncmp(cluster, dlm_config.ci_cluster_name, DLM_LOCKSPACE_LEN)) {
		log_print("dlm cluster name '%s' does not match "