aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_publish.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index c7f3c4152..71ab1122c 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -716,17 +716,21 @@ handle_index_start_failed (void *cls,
716 struct GNUNET_FS_PublishContext *pc = cls; 716 struct GNUNET_FS_PublishContext *pc = cls;
717 struct GNUNET_FS_FileInformation *p; 717 struct GNUNET_FS_FileInformation *p;
718 const char *emsg = (const char *) &msg[1]; 718 const char *emsg = (const char *) &msg[1];
719 char *msgtxt;
719 720
720 GNUNET_MQ_destroy (pc->mq); 721 GNUNET_MQ_destroy (pc->mq);
721 pc->mq = NULL; 722 pc->mq = NULL;
722 p = pc->fi_pos; 723 p = pc->fi_pos;
723 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 724 GNUNET_asprintf (&msgtxt,
724 _("Can not index file `%s': %s. Will try to insert instead.\n"), 725 _("Can not index file `%s': %s.\n"),
725 p->filename, 726 p->filename,
726 gettext (emsg)); 727 gettext (emsg));
727 p->data.file.do_index = GNUNET_NO; 728 signal_publish_error (p,
729 pc,
730 msgtxt);
731 GNUNET_free (msgtxt);
728 GNUNET_FS_file_information_sync_ (p); 732 GNUNET_FS_file_information_sync_ (p);
729 publish_content (pc); 733 GNUNET_FS_publish_sync_ (pc);
730} 734}
731 735
732 736