#include "gnunet_fs_service.h"
#include "gnunet_block_lib.h"
+/**
+ * Maximum size of the datastore queue for P2P operations.
+ */
+#define MAX_DATASTORE_QUEUE 16
+
/**
* Size of the individual blocks used for file-sharing.
*/
0, &query, dsize, &put[1],
type, prq.priority, 1 /* anonymity */,
expiration,
- 0, 64 /* FIXME: use define */,
+ 1 + prq.priority, MAX_DATASTORE_QUEUE,
GNUNET_CONSTANTS_SERVICE_TIMEOUT,
&put_migration_continuation,
NULL);
&query))
{
GNUNET_break (0);
- /* FIXME: consider removing the block? */
+ GNUNET_DATASTORE_remove (dsh,
+ key,
+ size, data,
+ -1, -1,
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ NULL, NULL);
GNUNET_DATASTORE_get_next (dsh, GNUNET_YES);
return;
}
pr->qe = GNUNET_DATASTORE_get (dsh,
&gm->query,
type,
- (unsigned int) preference, 64 /* FIXME */,
-
+ pr->priority + 1,
+ MAX_DATASTORE_QUEUE,
timeout,
&process_local_reply,
pr);