#include "gnunet_block_lib.h"
#include "fs.h"
+#define DEBUG_FS GNUNET_YES
+
/**
* Should we introduce random latency in processing? Required for proper
#if DEBUG_FS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Transmitting result for query `%s'\n",
- GNUNET_h2s (key));
+ GNUNET_h2s (&prd->query));
#endif
GNUNET_STATISTICS_update (GSF_stats,
gettext_noop ("# replies received for other peers"),
void
GSF_handle_local_client_disconnect_ (const struct GSF_LocalClient *lc)
{
+ if (NULL == cp_map)
+ return; /* already cleaned up */
GNUNET_CONTAINER_multihashmap_iterate (cp_map,
&clean_local_client,
(void*) lc);
#include "gnunet_protocols.h"
#include "gnunet_signatures.h"
#include "gnunet_util_lib.h"
+#include "gnunet-service-fs.h"
#include "gnunet-service-fs_indexing.h"
#include "fs.h"
-#define DEBUG_FS GNUNET_NO
-
/**
* In-memory information about indexed files (also available
* on-disk).
/**
- * Task run during shutdown.
- *
- * @param cls unused
- * @param tc unused
+ * Shutdown the module.
*/
-static void
-shutdown_task (void *cls,
- const struct GNUNET_SCHEDULER_TaskContext *tc)
+void
+GNUNET_FS_indexing_done ()
{
struct IndexInfo *pos;
cfg = c;
dsh = d;
ifm = GNUNET_CONTAINER_multihashmap_create (128);
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
- &shutdown_task,
- NULL);
read_index_list ();
return GNUNET_OK;
}
/*
This file is part of GNUnet.
- (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+ (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
struct GNUNET_DATASTORE_Handle *d);
+/**
+ * Shutdown the module.
+ */
+void
+GNUNET_FS_indexing_done (void);
+
+
#endif
*/
#include "platform.h"
+#include "gnunet-service-fs.h"
#include "gnunet-service-fs_lc.h"
#include "gnunet-service-fs_cp.h"
#include "gnunet-service-fs_pr.h"
/*
This file is part of GNUnet.
- (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+ (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* - GSF_plan_size_ (?)
* - GSF_plan_notify_request_done (!)
* - consider re-issue GSF_dht_lookup_ after non-DHT reply received
- *
+ * - implement 'SUPPORT_DELAYS'
*
*/
#include "platform.h"
#include "gnunet-service-fs_put.h"
#include "fs.h"
-#define DEBUG_FS GNUNET_YES
-
/**
* Size for the hash map for DHT requests from the FS
* service. Should be about the number of concurrent
GNUNET_SCHEDULER_cancel (cover_age_task);
cover_age_task = GNUNET_SCHEDULER_NO_TASK;
}
+ GNUNET_FS_indexing_done ();
GNUNET_LOAD_value_free (datastore_get_load);
datastore_get_load = NULL;
GNUNET_LOAD_value_free (GSF_rt_entry_lifetime);
* @author Christian Grothoff
*/
#include "platform.h"
+#include "gnunet-service-fs.h"
#include "gnunet-service-fs_cp.h"
#include "gnunet-service-fs_pe.h"
#include "gnunet-service-fs_pr.h"
*/
#include "platform.h"
#include "gnunet_load_lib.h"
+#include "gnunet-service-fs.h"
#include "gnunet-service-fs_cp.h"
#include "gnunet-service-fs_indexing.h"
#include "gnunet-service-fs_pr.h"
#if DEBUG_FS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Replicating result for query `%s' with priority %u\n",
- GNUNET_h2s (&query),
+ GNUNET_h2s (key),
prq.priority);
#endif
start = GNUNET_malloc (sizeof (struct GNUNET_TIME_Absolute));
PORT = 42471
HOSTNAME = localhost
ACTIVEMIGRATION = NO
-DEBUG = NO
+DEBUG = YES
#PREFIX = valgrind --tool=memcheck --leak-check=yes
#BINARY = /home/grothoff/bin/gnunet-service-fs