aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-09-16 14:12:23 +0000
committerNathan S. Evans <evans@in.tum.de>2010-09-16 14:12:23 +0000
commit866acf084b375550e3db0044258d98e2c2fd8bf0 (patch)
tree57ca6089a58e2a2db6f5fb312684c254c51312d0 /src
parent79453be1daf8fbda661a2bd1f701a9733f0ba8c8 (diff)
downloadgnunet-866acf084b375550e3db0044258d98e2c2fd8bf0.tar.gz
gnunet-866acf084b375550e3db0044258d98e2c2fd8bf0.zip
sql related changes
Diffstat (limited to 'src')
-rw-r--r--src/dht/dht.h24
-rw-r--r--src/dht/dhtlog.h10
2 files changed, 17 insertions, 17 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 94276b8d5..56bb29934 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -38,11 +38,17 @@
38 38
39#define DHT_BLOOM_K 6 39#define DHT_BLOOM_K 6
40 40
41/**
42 * How many requests to remember for forwarding responses.
43 */
41#define MAX_OUTSTANDING_FORWARDS 100 44#define MAX_OUTSTANDING_FORWARDS 100
42 45
46/**
47 * How long to remember requests so we can forward responses.
48 */
43#define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) 49#define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
44 50
45#define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) 51#define DEFAULT_DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60)
46 52
47#define DHT_SEND_PRIORITY 4 53#define DHT_SEND_PRIORITY 4
48 54
@@ -231,22 +237,6 @@ struct GNUNET_DHT_P2PRouteMessage
231 char bloomfilter[DHT_BLOOM_SIZE]; 237 char bloomfilter[DHT_BLOOM_SIZE];
232 238
233 /** 239 /**
234 * FIXME: add DHT logging for analysis!
235 */
236#if LOG_SQL
237 /*
238 * Unique query id for sql database interaction.
239 */
240 uint64_t queryuid;
241
242 /*
243 * Unique trial id for sql database interaction
244 */
245 uint64_t trialuid;
246
247#endif
248
249 /**
250 * The key to search for 240 * The key to search for
251 */ 241 */
252 GNUNET_HashCode key; 242 GNUNET_HashCode key;
diff --git a/src/dht/dhtlog.h b/src/dht/dhtlog.h
index ee594b2f1..a9608ffd2 100644
--- a/src/dht/dhtlog.h
+++ b/src/dht/dhtlog.h
@@ -275,6 +275,16 @@ struct GNUNET_DHTLOG_Handle
275 const char *section, uint64_t value); 275 const char *section, uint64_t value);
276 276
277 /* 277 /*
278 * Inserts the specified round into the dhttests.rounds table
279 *
280 * @param round_type the type of round that is being started
281 * @param round_count counter for the round (if applicable)
282 *
283 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
284 */
285 int (*insert_round) (unsigned int round_type, unsigned int round_count);
286
287 /*
278 * Update dhttests.trials table with total connections information 288 * Update dhttests.trials table with total connections information
279 * 289 *
280 * @param trialuid the trialuid to update 290 * @param trialuid the trialuid to update