s3-ctdb: Add debug to ctdb_processes_exist
authorVolker Lendecke <vl@samba.org>
Wed, 26 Oct 2011 15:51:09 +0000 (17:51 +0200)
committerVolker Lendecke <vlendec@samba.org>
Thu, 27 Oct 2011 18:28:31 +0000 (20:28 +0200)
source3/lib/ctdbd_conn.c

index 7733f1ecd8206ee10a5ba45ad31943e29185ffad..8bd7caffb99c47cca7c97f6a08bb31e350291225 100644 (file)
@@ -950,6 +950,10 @@ bool ctdb_processes_exist(struct ctdbd_connection *conn,
 
                ZERO_STRUCT(req);
 
+               DEBUG(10, ("Requesting PID %d/%d, reqid=%d\n",
+                          (int)pids[i].vnn, (int)pids[i].pid,
+                          (int)reqids[i]));
+
                req.hdr.length = offsetof(struct ctdb_req_control, data);
                req.hdr.length += sizeof(pid_t);
                req.hdr.ctdb_magic   = CTDB_MAGIC;
@@ -1004,6 +1008,8 @@ bool ctdb_processes_exist(struct ctdbd_connection *conn,
 
                reqid = reply->hdr.reqid;
 
+               DEBUG(10, ("Received reqid %d\n", (int)reqid));
+
                for (i=0; i<num_pids; i++) {
                        if (reqid == reqids[i]) {
                                break;