1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

set the flags explicitely isnstead of masking them in

(This used to be ctdb commit 27a5f9dead44890683f9dbc4f07cda11264aa03b)
This commit is contained in:
Ronnie Sahlberg 2007-10-18 16:54:00 +10:00
parent 06cdb1ff31
commit 755511d28d

View File

@ -120,7 +120,7 @@ static int ctdb_add_node(struct ctdb_context *ctdb, char *nstr)
node->pnn = ctdb->num_nodes;
/* nodes start out disconnected and unhealthy */
node->flags |= NODE_FLAGS_DISCONNECTED | NODE_FLAGS_UNHEALTHY;
node->flags = (NODE_FLAGS_DISCONNECTED | NODE_FLAGS_UNHEALTHY);
if (ctdb->address.address &&
ctdb_same_address(&ctdb->address, &node->address)) {