[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11184 - in gnunet: . src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11184 - in gnunet: . src/fs |
Date: |
Tue, 4 May 2010 17:12:21 +0200 |
Author: grothoff
Date: 2010-05-04 17:12:21 +0200 (Tue, 04 May 2010)
New Revision: 11184
Modified:
gnunet/TODO
gnunet/src/fs/fs_download.c
gnunet/src/fs/fs_search.c
gnunet/src/fs/fs_tree.c
Log:
free active on download error
Modified: gnunet/TODO
===================================================================
--- gnunet/TODO 2010-05-04 14:20:32 UTC (rev 11183)
+++ gnunet/TODO 2010-05-04 15:12:21 UTC (rev 11184)
@@ -74,6 +74,7 @@
* FS: [CG]
- datastore reservation (publishing)
- location URIs (publish, search, download)
+ - unindex on index failure
- utilize in-line files in meta data always (including in search results or
when download is triggered manually and for probes); currently the data is
only used when users do a general 'recursive' download
@@ -113,6 +114,8 @@
- datastore
* FS:
- reconstruct IBLOCKS from DBLOCKS if possible (during download; see FIXME
in fs_download)
+ - add support for pushing "already seen" search results to FS service for
bloomfilter (can wait)
+ - use different 'priority' for probe downloads vs. normal downloads
0.9.0:
* new webpage:
Modified: gnunet/src/fs/fs_download.c
===================================================================
--- gnunet/src/fs/fs_download.c 2010-05-04 14:20:32 UTC (rev 11183)
+++ gnunet/src/fs/fs_download.c 2010-05-04 15:12:21 UTC (rev 11184)
@@ -822,6 +822,24 @@
/**
+ * Free entries in the map.
+ *
+ * @param cls unused (NULL)
+ * @param key unused
+ * @param entry entry of type "struct DownloadRequest" which is freed
+ * @return GNUNET_OK
+ */
+static int
+free_entry (void *cls,
+ const GNUNET_HashCode *key,
+ void *entry)
+{
+ GNUNET_free (entry);
+ return GNUNET_OK;
+}
+
+
+/**
* Iterator over entries in the pending requests in the 'active' map for the
* reply that we just got.
*
@@ -1076,7 +1094,10 @@
dc->th = NULL;
}
GNUNET_CLIENT_disconnect (dc->client, GNUNET_NO);
- /* FIXME: clean up dc->active / pending! */
+ GNUNET_CONTAINER_multihashmap_iterate (dc->active,
+ &free_entry,
+ NULL);
+ dc->pending = NULL;
dc->client = NULL;
GNUNET_free (sm);
GNUNET_FS_download_sync_ (dc);
@@ -1387,24 +1408,6 @@
/**
- * Free entries in the map.
- *
- * @param cls unused (NULL)
- * @param key unused
- * @param entry entry of type "struct DownloadRequest" which is freed
- * @return GNUNET_OK
- */
-static int
-free_entry (void *cls,
- const GNUNET_HashCode *key,
- void *entry)
-{
- GNUNET_free (entry);
- return GNUNET_OK;
-}
-
-
-/**
* Create SUSPEND event for the given download operation
* and then clean up our state (without stop signal).
*
Modified: gnunet/src/fs/fs_search.c
===================================================================
--- gnunet/src/fs/fs_search.c 2010-05-04 14:20:32 UTC (rev 11183)
+++ gnunet/src/fs/fs_search.c 2010-05-04 15:12:21 UTC (rev 11184)
@@ -24,7 +24,6 @@
* @author Christian Grothoff
*
* TODO:
- * - centralize code that sprintf's the 'pbuf[32]' strings
* - add support for pushing "already seen" information
* to FS service for bloomfilter (can wait)
*/
Modified: gnunet/src/fs/fs_tree.c
===================================================================
--- gnunet/src/fs/fs_tree.c 2010-05-04 14:20:32 UTC (rev 11183)
+++ gnunet/src/fs/fs_tree.c 2010-05-04 15:12:21 UTC (rev 11184)
@@ -23,10 +23,6 @@
* @see http://gnunet.org/encoding.php3
* @author Krista Bennett
* @author Christian Grothoff
- *
- * TODO:
- * - decide if this API should be made public (gnunet_fs_service.h)
- * or remain "internal" (but with exported symbols?)
*/
#include "platform.h"
#include "fs_tree.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11184 - in gnunet: . src/fs,
gnunet <=