From 866acf084b375550e3db0044258d98e2c2fd8bf0 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 16 Sep 2010 14:12:23 +0000 Subject: [PATCH] sql related changes --- src/dht/dht.h | 24 +++++++----------------- src/dht/dhtlog.h | 10 ++++++++++ 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 @@ #define DHT_BLOOM_K 6 +/** + * How many requests to remember for forwarding responses. + */ #define MAX_OUTSTANDING_FORWARDS 100 +/** + * How long to remember requests so we can forward responses. + */ #define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) -#define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) +#define DEFAULT_DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) #define DHT_SEND_PRIORITY 4 @@ -230,22 +236,6 @@ struct GNUNET_DHT_P2PRouteMessage */ char bloomfilter[DHT_BLOOM_SIZE]; - /** - * FIXME: add DHT logging for analysis! - */ -#if LOG_SQL - /* - * Unique query id for sql database interaction. - */ - uint64_t queryuid; - - /* - * Unique trial id for sql database interaction - */ - uint64_t trialuid; - -#endif - /** * The key to search for */ 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 @@ -274,6 +274,16 @@ struct GNUNET_DHTLOG_Handle const char *name, const char *section, uint64_t value); + /* + * Inserts the specified round into the dhttests.rounds table + * + * @param round_type the type of round that is being started + * @param round_count counter for the round (if applicable) + * + * @return GNUNET_OK on success, GNUNET_SYSERR on failure + */ + int (*insert_round) (unsigned int round_type, unsigned int round_count); + /* * Update dhttests.trials table with total connections information * -- 2.25.1