<commit_before>
/* Interface with openais's cman API */

#include <libcman.h>
#include "gd_internal.h"

static cman_handle_t	ch;
static int		old_quorate;
static cman_node_t	old_nodes[MAX_NODES];
static int		old_node_count;
static cman_node_t	cman_nodes[MAX_NODES];
static int		cman_node_count;
static char		name_buf[CMAN_MAX_NODENAME_LEN+1];


int kill_cman(int nodeid)
{
	cman_handle_t ach;
	int rv;

	ach = cman_admin_init(NULL);
	if (!ach) {
		log_print("cman_admin_init error %d %d", (int) ch, errno);
		return -ENOTCONN;
	}
	rv = cman_kill_node(ach, nodeid);
	cman_finish(ach);
	return rv;
}

int set_cman_dirty(void)
{
	int rv;

	rv = cman_set_dirty(ch);
	if (rv)
		log_print("cman_set_dirty error %d", rv);
	return rv;
}

static int is_member(cman_node_t *node_list, int count, int nodeid)<commit_msg>comment out the new cman_set_dirty() call; it's not working<commit_after>
/* Interface with openais's cman API */

#include <libcman.h>
#include "gd_internal.h"

static cman_handle_t	ch;
static int		old_quorate;
static cman_node_t	old_nodes[MAX_NODES];
static int		old_node_count;
static cman_node_t	cman_nodes[MAX_NODES];
static int		cman_node_count;
static char		name_buf[CMAN_MAX_NODENAME_LEN+1];


int kill_cman(int nodeid)
{
	cman_handle_t ach;
	int rv;

	ach = cman_admin_init(NULL);
	if (!ach) {
		log_print("cman_admin_init error %d %d", (int) ch, errno);
		return -ENOTCONN;
	}
	rv = cman_kill_node(ach, nodeid);
	cman_finish(ach);
	return rv;
}

int set_cman_dirty(void)
{
	int rv;

#if 0
	rv = cman_set_dirty(ch);
	if (rv)
		log_print("cman_set_dirty error %d", rv);
	return rv;
#endif
	return 0;
}

static int is_member(cman_node_t *node_list, int count, int nodeid)
{'fraction_non_alphanumeric': 0.11209964412811388, 'fraction_numerical': 0.002372479240806643, 'mean_word_length': 5.414448669201521, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2598334', 'n_tokens_mistral': 758, 'n_tokens_neox': 732, 'n_words': 170}