 #if 0 if(lpc == 0) { /* hey what happened?? */ crm_warn("We were called but no message was ready." "  Likely the connection to Heartbeat failed," " check the logs.");  if(empty_callbacks++ > MAX_EMPTY_CALLBACKS) { crm_err("%d empty callbacks received..." " considering heartbeat dead", MAX_EMPTY_CALLBACKS);  return FALSE; } } #endif 
crmd_ha_msg_dispatch(IPC_Channel *channel, gpointer user_data){	int lpc = 0;	ll_cluster_t *hb_cluster = (ll_cluster_t*)user_data;#if 1	while(hb_cluster->llc_ops->msgready(hb_cluster)) { 		lpc++; 		/* invoke the callbacks but dont block */		hb_cluster->llc_ops->rcvmsg(hb_cluster, 0);/* 		empty_callbacks = 0; */	}#else	while(hb_cluster->llc_ops->rcvmsg(hb_cluster, 0)) { 		lpc++; 	}#endif	crm_trace("%d HA messages dispatched", lpc);	if (channel && (channel->ch_status == IPC_DISCONNECT)) {		crm_crit("Lost connection to heartbeat service.");		return FALSE;	}#if 0	if(lpc == 0) {		/* hey what happened?? */		crm_warn("We were called but no message was ready."		       "  Likely the connection to Heartbeat failed,"			" check the logs.");		if(empty_callbacks++ > MAX_EMPTY_CALLBACKS) {			crm_err("%d empty callbacks received..."				" considering heartbeat dead",				MAX_EMPTY_CALLBACKS);			return FALSE;		}	}#endif	    	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/6f0e92387430225b77d1ec4fa013cbd1e033a9fb/callbacks.c/clean/crm/crmd/callbacks.c