#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_DOWNLOAD GNUNET_NO
+#define DEBUG_DOWNLOAD GNUNET_YES
/**
* We're storing the IBLOCKS after the DBLOCKS on disk (so that we
/**
- * Schedule the download of the specified
- * block in the tree.
+ * Schedule the download of the specified block in the tree.
*
* @param dc overall download this block belongs to
* @param chk content-hash-key of the block
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_PUBLISH GNUNET_NO
+#define DEBUG_PUBLISH GNUNET_YES
/**
* Main function that performs the upload.
{
if (GNUNET_SCHEDULER_NO_TASK != sc->upload_task)
GNUNET_SCHEDULER_cancel (sc->h->sched, sc->upload_task);
- else
- GNUNET_assert (sc->all_done == GNUNET_YES);
// FIXME: remove from persistence DB (?) --- think more about
// shutdown / persistent-resume APIs!!!
GNUNET_FS_file_information_inspect (sc->fi,
#include "platform.h"
#include "fs_tree.h"
-#define DEBUG_TREE GNUNET_NO
+#define DEBUG_TREE GNUNET_YES
/**
* Context for an ECRS-based file encoder that computes
/**
- * Encrypt the next block of the file (and
- * call proc and progress accordingly; or
- * of course "cont" if we have already completed
+ * Encrypt the next block of the file (and call proc and progress
+ * accordingly; or of course "cont" if we have already completed
* encoding of the entire file).
*
* @param te tree encoder to use
#include "gnunet-service-fs_indexing.h"
#include "fs.h"
-#define DEBUG_FS GNUNET_NO
+#define DEBUG_FS GNUNET_YES
/**
* Maximum number of outgoing messages we queue per peer.
GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
TTL_DECREMENT);
if ( (pr->ttl < 0) &&
- (pr->ttl - ttl_decrement > 0) )
+ (((int32_t)(pr->ttl - ttl_decrement)) > 0) )
{
#if DEBUG_FS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
&pr->mingle,
&pr->bf_size,
pr->replies_seen);
- pr->query = sm->query;
+ pr->query = sm->query;
switch (type)
{
case GNUNET_DATASTORE_BLOCKTYPE_DBLOCK: