[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: remove index->insert fallba
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: remove index->insert fallback (#5074) |
Date: |
Wed, 20 Feb 2019 12:55:09 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 2f685ab91 remove index->insert fallback (#5074)
2f685ab91 is described below
commit 2f685ab91bd689f835c97a265a978d2d45eab509
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 20 12:55:08 2019 +0100
remove index->insert fallback (#5074)
---
src/fs/fs_publish.c | 18 +++++++++++-------
1 file 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 @@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -716,17 +716,21 @@ handle_index_start_failed (void *cls,
struct GNUNET_FS_PublishContext *pc = cls;
struct GNUNET_FS_FileInformation *p;
const char *emsg = (const char *) &msg[1];
+ char *msgtxt;
GNUNET_MQ_destroy (pc->mq);
pc->mq = NULL;
p = pc->fi_pos;
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- _("Can not index file `%s': %s. Will try to insert instead.\n"),
- p->filename,
- gettext (emsg));
- p->data.file.do_index = GNUNET_NO;
+ GNUNET_asprintf (&msgtxt,
+ _("Can not index file `%s': %s.\n"),
+ p->filename,
+ gettext (emsg));
+ signal_publish_error (p,
+ pc,
+ msgtxt);
+ GNUNET_free (msgtxt);
GNUNET_FS_file_information_sync_ (p);
- publish_content (pc);
+ GNUNET_FS_publish_sync_ (pc);
}
--
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: remove index->insert fallback (#5074),
gnunet <=