]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
change debug output from vnn to pnn
authorRonnie Sahlberg <sahlberg@ronnie>
Tue, 4 Sep 2007 00:45:41 +0000 (10:45 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Tue, 4 Sep 2007 00:45:41 +0000 (10:45 +1000)
change ctdb_daemon_send_message to take pnn as parameter isntead of vnn

(This used to be ctdb commit e352a2bbf9bb9a0b2c4f8329e8a529cf02414097)

ctdb/include/ctdb_private.h
ctdb/server/ctdb_control.c
ctdb/server/ctdb_daemon.c

index ec9267edbfce9efed91cb74983452245793eea79..23d8d9d320e7e09280feeb689b36249ff23e0047 100644 (file)
@@ -809,7 +809,7 @@ int ctdb_client_send_message(struct ctdb_context *ctdb, uint32_t vnn,
 /*
   send a ctdb message
 */
-int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t vnn,
+int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t pnn,
                             uint64_t srvid, TDB_DATA data);
 
 
index 2c146c4795bd351e39f10e1c96f6c5b26f1b488c..d831e019b5cf37aa4962bc898da1a424ae5b5ec6 100644 (file)
@@ -393,7 +393,7 @@ void ctdb_reply_control(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
 
        state = ctdb_reqid_find(ctdb, hdr->reqid, struct ctdb_control_state);
        if (state == NULL) {
-               DEBUG(0,("vnn %u Invalid reqid %u in ctdb_reply_control\n",
+               DEBUG(0,("pnn %u Invalid reqid %u in ctdb_reply_control\n",
                         ctdb->pnn, hdr->reqid));
                return;
        }
index 595aafdf90fb4a98f2152af76934be9b83b779ec..ce355a5d377d01f7a4e03c0db17bd3aabde43a62 100644 (file)
@@ -44,7 +44,7 @@ static void flag_change_handler(struct ctdb_context *ctdb, uint64_t srvid,
        }
 
        if (!ctdb_validate_pnn(ctdb, c->pnn)) {
-               DEBUG(0,("Bad vnn %u in flag_change_handler\n", c->pnn));
+               DEBUG(0,("Bad pnn %u in flag_change_handler\n", c->pnn));
                return;
        }
 
@@ -910,14 +910,14 @@ static int ctdb_local_message(struct ctdb_context *ctdb, uint64_t srvid, TDB_DAT
 /*
   send a ctdb message
 */
-int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t vnn,
+int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t pnn,
                             uint64_t srvid, TDB_DATA data)
 {
        struct ctdb_req_message *r;
        int len;
 
        /* see if this is a message to ourselves */
-       if (vnn == ctdb->pnn) {
+       if (pnn == ctdb->pnn) {
                return ctdb_local_message(ctdb, srvid, data);
        }
 
@@ -926,7 +926,7 @@ int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t vnn,
                                    struct ctdb_req_message);
        CTDB_NO_MEMORY(ctdb, r);
 
-       r->hdr.destnode  = vnn;
+       r->hdr.destnode  = pnn;
        r->srvid         = srvid;
        r->datalen       = data.dsize;
        memcpy(&r->data[0], data.dptr, data.dsize);