diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-18 20:18:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-18 20:18:00 +0000 |
commit | a890844ffe2472421b21f2ef35d63397793960a4 (patch) | |
tree | 3f727c6bf58621390d17fae01b2f7b0a10588754 /src/fs/fs_publish.c | |
parent | 39652d5d03a832f2bf45c58f237f91672cfeb4db (diff) | |
download | gnunet-a890844ffe2472421b21f2ef35d63397793960a4.tar.gz gnunet-a890844ffe2472421b21f2ef35d63397793960a4.zip |
fix fs testcase
Diffstat (limited to 'src/fs/fs_publish.c')
-rw-r--r-- | src/fs/fs_publish.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c index 90908f412..73fc710e1 100644 --- a/src/fs/fs_publish.c +++ b/src/fs/fs_publish.c | |||
@@ -567,7 +567,7 @@ block_proc (void *cls, | |||
567 | odb.offset = GNUNET_htonll (offset); | 567 | odb.offset = GNUNET_htonll (offset); |
568 | odb.file_id = p->data.file.file_id; | 568 | odb.file_id = p->data.file.file_id; |
569 | GNUNET_DATASTORE_put (sc->dsh, | 569 | GNUNET_DATASTORE_put (sc->dsh, |
570 | sc->rid, | 570 | (p->is_directory) ? 0 : sc->rid, |
571 | query, | 571 | query, |
572 | sizeof(struct OnDemandBlock), | 572 | sizeof(struct OnDemandBlock), |
573 | &odb, | 573 | &odb, |
@@ -589,7 +589,7 @@ block_proc (void *cls, | |||
589 | (unsigned int) block_size); | 589 | (unsigned int) block_size); |
590 | #endif | 590 | #endif |
591 | GNUNET_DATASTORE_put (sc->dsh, | 591 | GNUNET_DATASTORE_put (sc->dsh, |
592 | sc->rid, | 592 | (p->is_directory) ? 0 : sc->rid, |
593 | query, | 593 | query, |
594 | block_size, | 594 | block_size, |
595 | block, | 595 | block, |
@@ -1105,6 +1105,7 @@ fip_signal_start(void *cls, | |||
1105 | left = left * sizeof (struct ContentHashKey); | 1105 | left = left * sizeof (struct ContentHashKey); |
1106 | sc->reserve_space += left; | 1106 | sc->reserve_space += left; |
1107 | } | 1107 | } |
1108 | sc->reserve_entries++; | ||
1108 | /* entries and space for keywords */ | 1109 | /* entries and space for keywords */ |
1109 | if (NULL != *uri) | 1110 | if (NULL != *uri) |
1110 | { | 1111 | { |