]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
set the flags explicitely isnstead of masking them in
authorRonnie Sahlberg <sahlberg@ronnie>
Thu, 18 Oct 2007 06:54:00 +0000 (16:54 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Thu, 18 Oct 2007 06:54:00 +0000 (16:54 +1000)
(This used to be ctdb commit 27a5f9dead44890683f9dbc4f07cda11264aa03b)

ctdb/server/ctdb_server.c

index 5c579f00228d38be96cfc71b4975164846f6ffb8..5cdc2a5deaf02861dd3a09b2f7b3de25345e44d1 100644 (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)) {