[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8715 - GNUnet/src/applications/dhtlog_mysql
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8715 - GNUnet/src/applications/dhtlog_mysql |
Date: |
Thu, 16 Jul 2009 15:48:21 -0600 |
Author: nevans
Date: 2009-07-16 15:48:20 -0600 (Thu, 16 Jul 2009)
New Revision: 8715
Modified:
GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
Log:
Modified: GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c
===================================================================
--- GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-07-16 21:48:06 UTC
(rev 8714)
+++ GNUnet/src/applications/dhtlog_mysql/dhtlog_mysql.c 2009-07-16 21:48:20 UTC
(rev 8715)
@@ -61,8 +61,8 @@
"VALUES (?, ?, ?)"
static struct GNUNET_MysqlStatementHandle *insert_node;
-#define INSERT_TRIALS_STMT "INSERT INTO trials (starttime, numnodes, topology,
puts, gets, concurrent, settle_time, message) "\
- "VALUES (NOW(), ?, ?, ?, ?, ?, ?, ?)"
+#define INSERT_TRIALS_STMT "INSERT INTO trials (starttime, numnodes, topology,
puts, gets, concurrent, settle_time, num_rounds, message) "\
+ "VALUES (NOW(), ?, ?, ?, ?, ?, ?, ?, ?)"
static struct GNUNET_MysqlStatementHandle *insert_trial;
#define INSERT_DHTKEY_STMT "INSERT INTO dhtkeys (dhtkey, trialuid, keybits) "\
@@ -166,6 +166,7 @@
"`starttime` datetime NOT NULL,"
"`endtime` datetime NOT NULL,"
"`settle_time` int(10) unsigned NOT NULL,"
+ "`num_rounds` int(10) unsigned NOT NULL,"
"PRIMARY KEY (`trialuid`),"
"UNIQUE KEY `trialuid` (`trialuid`)"
") ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1"))
@@ -247,7 +248,7 @@
*/
int
add_trial (unsigned long long *trialuid, int num_nodes, int topology,
- int puts, int gets, int concurrent, int settle_time, char *message)
+ int puts, int gets, int concurrent, int settle_time, int
num_rounds, char *message)
{
int ret;
unsigned long long m_len;
@@ -273,6 +274,9 @@
MYSQL_TYPE_LONG,
&settle_time,
GNUNET_YES,
+ MYSQL_TYPE_LONG,
+ &num_rounds,
+ GNUNET_YES,
MYSQL_TYPE_BLOB,
message,
max_varchar_len +
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8715 - GNUnet/src/applications/dhtlog_mysql,
gnunet <=