[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix queue
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix queue |
Date: |
Sat, 22 Oct 2022 05:45:56 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new eeded1180 -fix queue
eeded1180 is described below
commit eeded1180f04913c9c324ca04e32234c6a920304
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Oct 22 12:45:49 2022 +0900
-fix queue
---
src/zonemaster/gnunet-service-zonemaster.c | 32 +++---------------------------
1 file changed, 3 insertions(+), 29 deletions(-)
diff --git a/src/zonemaster/gnunet-service-zonemaster.c
b/src/zonemaster/gnunet-service-zonemaster.c
index 220cf1f99..cbb448518 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -246,16 +246,6 @@ static struct GNUNET_NAMESTORE_Handle *namestore_handle;
*/
static struct GNUNET_NAMESTORE_ZoneMonitor *zmon;
-/**
- * Head of monitor activities; kept in a DLL.
- */
-static struct DhtPutActivity *ma_head;
-
-/**
- * Tail of monitor activities; kept in a DLL.
- */
-static struct DhtPutActivity *ma_tail;
-
/**
* Our handle to the namecache service
*/
@@ -267,11 +257,6 @@ static struct GNUNET_NAMECACHE_Handle *namecache;
*/
static int disable_namecache;
-/**
- * Number of entries in the DHT queue #ma_head.
- */
-static unsigned int ma_queue_length;
-
/**
* Handle to iterate over our authoritative zone in namestore
*/
@@ -448,23 +433,12 @@ shutdown_task (void *cls)
{
if (NULL != ma->ph)
GNUNET_DHT_put_cancel (ma->ph);
- dht_queue_length--;
GNUNET_CONTAINER_DLL_remove (it_head,
it_tail,
ma);
dht_queue_length--;
GNUNET_free (ma);
}
- while (NULL != (ma = ma_head))
- {
- if (NULL != ma->ph)
- GNUNET_DHT_put_cancel (ma->ph);
- ma_queue_length--;
- GNUNET_CONTAINER_DLL_remove (ma_head,
- ma_tail,
- ma);
- GNUNET_free (ma);
- }
if (NULL != statistics)
{
GNUNET_STATISTICS_destroy (statistics,
@@ -1263,10 +1237,10 @@ handle_monitor_event (void *cls,
ma);
GNUNET_NAMESTORE_zone_monitor_next (zmon,
1);
- GNUNET_CONTAINER_DLL_insert_tail (ma_head,
- ma_tail,
+ GNUNET_CONTAINER_DLL_insert_tail (it_head,
+ it_tail,
ma);
- ma_queue_length++;
+ dht_queue_length++;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix queue,
gnunet <=