[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Support filter-size in fs b
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Support filter-size in fs block plugin |
Date: |
Mon, 02 Oct 2017 00:31:18 +0200 |
This is an automated email from the git hooks/post-receive script.
david-barksdale pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 0f225ed03 Support filter-size in fs block plugin
0f225ed03 is described below
commit 0f225ed0304398350d7b51a2567b2dc595476f31
Author: David Barksdale <address@hidden>
AuthorDate: Sun Oct 1 17:19:05 2017 -0500
Support filter-size in fs block plugin
This should fix some assertions failures I'm seeing in the DHT service.
---
src/fs/plugin_block_fs.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c
index 902519f15..c762835ce 100644
--- a/src/fs/plugin_block_fs.c
+++ b/src/fs/plugin_block_fs.c
@@ -71,17 +71,22 @@ block_plugin_fs_create_group (void *cls,
return NULL;
case GNUNET_BLOCK_TYPE_FS_UBLOCK:
guard = va_arg (va, const char *);
- if (0 != strcmp (guard,
+ if (0 == strcmp (guard,
"seen-set-size"))
{
- /* va-args invalid! bad bug, complain! */
- GNUNET_break (0);
- size = 8;
+ size = GNUNET_BLOCK_GROUP_compute_bloomfilter_size (va_arg (va, unsigned
int),
+ BLOOMFILTER_K);
+ }
+ else if (0 == strcmp (guard,
+ "filter-size"))
+ {
+ size = va_arg (va, unsigned int);
}
else
{
- size = GNUNET_BLOCK_GROUP_compute_bloomfilter_size (va_arg (va, unsigned
int),
- BLOOMFILTER_K);
+ /* va-args invalid! bad bug, complain! */
+ GNUNET_break (0);
+ size = 8;
}
if (0 == size)
size = raw_data_size; /* not for us to determine, use what we got! */
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Support filter-size in fs block plugin,
gnunet <=