search for: node_flags_inactive

Displaying 1 result from an estimated 1 matches for "node_flags_inactive".

2012 May 24
0
Is it possible to use quorum for CTDB to prevent split-brain and removing lockfile in the cluster file system
...uct ctdb_context *ctdb, struct ctdb_recoverd *rec, TALLOC_CTX *mem_ctx) ... /* count how many active nodes there are */ rec->num_active = 0; rec->num_connected = 0; for (i=0; i<nodemap->num; i++) { if (!(nodemap->nodes[i].flags & NODE_FLAGS_INACTIVE)) { rec->num_active++; } if (!(nodemap->nodes[i].flags & NODE_FLAGS_DISCONNECTED)) { rec->num_connected++; } } + if (rec->num_connected < ((nodemap->num)/2+1)){ +...