aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_indexing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-25 08:06:58 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-25 08:06:58 +0000
commitf094448e150652facb82024f45dea7193650c2bc (patch)
treee8ce22c6c31547b5336daa640b3684338e86268f /src/fs/gnunet-service-fs_indexing.c
parent9b9b15d3cc2a9d982d77e7b0f6459dc7eaf88c4c (diff)
downloadgnunet-f094448e150652facb82024f45dea7193650c2bc.tar.gz
gnunet-f094448e150652facb82024f45dea7193650c2bc.zip
fixes
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r--src/fs/gnunet-service-fs_indexing.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c
index 363755169..cc99d3962 100644
--- a/src/fs/gnunet-service-fs_indexing.c
+++ b/src/fs/gnunet-service-fs_indexing.c
@@ -31,11 +31,10 @@
31#include "gnunet_protocols.h" 31#include "gnunet_protocols.h"
32#include "gnunet_signatures.h" 32#include "gnunet_signatures.h"
33#include "gnunet_util_lib.h" 33#include "gnunet_util_lib.h"
34#include "gnunet-service-fs.h"
34#include "gnunet-service-fs_indexing.h" 35#include "gnunet-service-fs_indexing.h"
35#include "fs.h" 36#include "fs.h"
36 37
37#define DEBUG_FS GNUNET_NO
38
39/** 38/**
40 * In-memory information about indexed files (also available 39 * In-memory information about indexed files (also available
41 * on-disk). 40 * on-disk).
@@ -681,14 +680,10 @@ GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key,
681 680
682 681
683/** 682/**
684 * Task run during shutdown. 683 * Shutdown the module.
685 *
686 * @param cls unused
687 * @param tc unused
688 */ 684 */
689static void 685void
690shutdown_task (void *cls, 686GNUNET_FS_indexing_done ()
691 const struct GNUNET_SCHEDULER_TaskContext *tc)
692{ 687{
693 struct IndexInfo *pos; 688 struct IndexInfo *pos;
694 689
@@ -718,9 +713,6 @@ GNUNET_FS_indexing_init (const struct GNUNET_CONFIGURATION_Handle *c,
718 cfg = c; 713 cfg = c;
719 dsh = d; 714 dsh = d;
720 ifm = GNUNET_CONTAINER_multihashmap_create (128); 715 ifm = GNUNET_CONTAINER_multihashmap_create (128);
721 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
722 &shutdown_task,
723 NULL);
724 read_index_list (); 716 read_index_list ();
725 return GNUNET_OK; 717 return GNUNET_OK;
726} 718}