Ejemplo n.º 1
0
Archivo: main.c Proyecto: pdziepak/rcl
void* main2(void* ptr)
{
	int retval;

	(void)ptr;

	retval = join_cluster(conf_get_string(CONF_ADDRESS));
	if (retval) {
		log_print(log_critical, "Unable to join cluster");
		exit(1);
	}

	return NULL;
}
Ejemplo n.º 2
0
int join_clusters(void)
{
	int i, ret, status;
	if (!has_booted)
		while(1);

	for (i = 0; i < BSP_NB_CLUSTER_MAX; ++i) {
		if (clus_bin_boots[i].status != STATE_ON)
			continue;

		ret = join_cluster(i, &status);
		if (ret < 0)
			return ret;
	}
	return 0;
}
void step_3_join_clusters(struct Parameters *pParam)
{
  char logStr[MAXLOGMSGLEN];
  char digit[MAXDIGITBIT];
  
  log_msg("Joining clusters...", LOG_NOTICE, pParam);
  
  set_token(pParam);
  
  join_cluster(pParam);
  
  str_format_int_grouped(digit, pParam->joinedClusterInputNum);
  sprintf(logStr, "%s clusters contain frequent words under word weight"
      "threshold.", digit);
  log_msg(logStr, LOG_INFO, pParam);
  
  str_format_int_grouped(digit, pParam->joinedClusterOutputNum);
  sprintf(logStr, "Those clusters were joined into %s clusters.", digit);
  log_msg(logStr, LOG_INFO, pParam);
}