gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8759 - GNUnet/src/applications/dhtlog_mysql


From: gnunet
Subject: [GNUnet-SVN] r8759 - GNUnet/src/applications/dhtlog_mysql
Date: Mon, 20 Jul 2009 14:55:21 -0600

Author: nevans
Date: 2009-07-20 14:55:21 -0600 (Mon, 20 Jul 2009)
New Revision: 8759

Modified:
   GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
Log:
dv hops

Modified: GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
===================================================================
--- GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-07-20 20:54:51 UTC 
(rev 8758)
+++ GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-07-20 20:55:21 UTC 
(rev 8759)
@@ -53,8 +53,8 @@
                           "VALUES (?, ?, ?, ?, ?, ?, ?)"
 static struct GNUNET_MysqlStatementHandle *insert_query;
 
-#define INSERT_ROUTES_STMT "INSERT INTO routes (trialuid, querytype, hops, 
dhtkeyuid, dhtqueryid, succeeded, nodeuid, from_node, to_node) "\
-                          "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"
+#define INSERT_ROUTES_STMT "INSERT INTO routes (trialuid, querytype, hops, 
dvhops, dhtkeyuid, dhtqueryid, succeeded, nodeuid, from_node, to_node) "\
+                          "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
 static struct GNUNET_MysqlStatementHandle *insert_route;
 
 #define INSERT_NODES_STMT "INSERT INTO nodes (trialuid, nodeid, nodebits) "\
@@ -323,7 +323,7 @@
                                                   &current_trial,
                                                   GNUNET_YES,
                                                   MYSQL_TYPE_BLOB,
-                                                  &dhtkey,
+                                                  dhtkey,
                                                   sizeof (GNUNET_HashCode),
                                                   &h_len, -1)))
     {
@@ -585,7 +585,7 @@
  */
 int
 add_route (unsigned long long *sqlqueryuid, unsigned long long queryid,
-           unsigned int type, unsigned int hops,
+           unsigned int type, unsigned int hops, unsigned int dvhops,
            int succeeded, const GNUNET_PeerIdentity * node,
            const GNUNET_HashCode * key, const GNUNET_PeerIdentity * from_node,
            const GNUNET_PeerIdentity * to_node)
@@ -638,6 +638,9 @@
                                                   MYSQL_TYPE_LONG,
                                                   &hops,
                                                   GNUNET_YES,
+                                                  MYSQL_TYPE_LONG,
+                                                  &dvhops,
+                                                  GNUNET_YES,
                                                   MYSQL_TYPE_LONGLONG,
                                                   &key_uid,
                                                   GNUNET_YES,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]