aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-18 21:57:14 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-18 21:57:14 +0000
commit0ec759513a49b4219d6a6b235ecca50c123a6522 (patch)
treef703699260ad5107eff1512f48278a8d986f0fc8 /src
parent01c0d4c4f48eb02440c357f0e989d8dd8acb7a58 (diff)
downloadgnunet-0ec759513a49b4219d6a6b235ecca50c123a6522.tar.gz
gnunet-0ec759513a49b4219d6a6b235ecca50c123a6522.zip
-sync after getting URI on publishing to resume properly; also bugfix...
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_api.c12
-rw-r--r--src/fs/fs_publish.c1
2 files changed, 7 insertions, 6 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index b930f35bd..67be447f6 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -676,13 +676,13 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h, const char *fn,
676 filename = NULL; 676 filename = NULL;
677 if ((GNUNET_OK != GNUNET_BIO_read_meta_data (rh, "metadata", &ret->meta)) || 677 if ((GNUNET_OK != GNUNET_BIO_read_meta_data (rh, "metadata", &ret->meta)) ||
678 (GNUNET_OK != GNUNET_BIO_read_string (rh, "ksk-uri", &ksks, 32 * 1024)) || 678 (GNUNET_OK != GNUNET_BIO_read_string (rh, "ksk-uri", &ksks, 32 * 1024)) ||
679 ((ksks != NULL) && 679 ( (NULL != ksks) &&
680 (NULL == (ret->keywords = GNUNET_FS_uri_parse (ksks, NULL)))) || 680 ( (NULL == (ret->keywords = GNUNET_FS_uri_parse (ksks, NULL))) ||
681 (GNUNET_YES != GNUNET_FS_uri_test_ksk (ret->keywords)) || 681 (GNUNET_YES != GNUNET_FS_uri_test_ksk (ret->keywords)) ) ) ||
682 (GNUNET_OK != GNUNET_BIO_read_string (rh, "chk-uri", &chks, 1024)) || 682 (GNUNET_OK != GNUNET_BIO_read_string (rh, "chk-uri", &chks, 1024)) ||
683 ((chks != NULL) && 683 ( (NULL != chks) &&
684 ((NULL == (ret->chk_uri = GNUNET_FS_uri_parse (chks, NULL))) || 684 ( (NULL == (ret->chk_uri = GNUNET_FS_uri_parse (chks, NULL))) ||
685 (GNUNET_YES != GNUNET_FS_uri_test_chk (ret->chk_uri)))) || 685 (GNUNET_YES != GNUNET_FS_uri_test_chk (ret->chk_uri))) ) ||
686 (GNUNET_OK != read_start_time (rh, &ret->start_time)) || 686 (GNUNET_OK != read_start_time (rh, &ret->start_time)) ||
687 (GNUNET_OK != GNUNET_BIO_read_string (rh, "emsg", &ret->emsg, 16 * 1024)) 687 (GNUNET_OK != GNUNET_BIO_read_string (rh, "emsg", &ret->emsg, 16 * 1024))
688 || (GNUNET_OK != 688 || (GNUNET_OK !=
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index 134dd21e4..315e3a157 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -388,6 +388,7 @@ encode_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
388 p = pc->fi_pos; 388 p = pc->fi_pos;
389 GNUNET_FS_tree_encoder_finish (p->te, &p->chk_uri, &emsg); 389 GNUNET_FS_tree_encoder_finish (p->te, &p->chk_uri, &emsg);
390 p->te = NULL; 390 p->te = NULL;
391 GNUNET_FS_file_information_sync_ (p);
391 if (NULL != emsg) 392 if (NULL != emsg)
392 { 393 {
393 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error during tree walk: %s\n", emsg); 394 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error during tree walk: %s\n", emsg);