aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_indexing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.c')
-rw-r--r--src/fs/gnunet-service-fs_indexing.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c
index 5978e4d66..41a40e125 100644
--- a/src/fs/gnunet-service-fs_indexing.c
+++ b/src/fs/gnunet-service-fs_indexing.c
@@ -538,13 +538,12 @@ GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key, uint32_t size,
538 odb = (const struct OnDemandBlock *) data; 538 odb = (const struct OnDemandBlock *) data;
539 off = GNUNET_ntohll (odb->offset); 539 off = GNUNET_ntohll (odb->offset);
540 fn = (const char *) GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id); 540 fn = (const char *) GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id);
541 if ( (NULL == fn) || 541 if ((NULL == fn) || (0 != ACCESS (fn, R_OK)))
542 (0 != ACCESS (fn, R_OK)) )
543 { 542 {
544 GNUNET_STATISTICS_update (GSF_stats, 543 GNUNET_STATISTICS_update (GSF_stats,
545 gettext_noop ("# index blocks removed: original file inaccessible"), 544 gettext_noop
546 1, 545 ("# index blocks removed: original file inaccessible"),
547 GNUNET_YES); 546 1, GNUNET_YES);
548 GNUNET_DATASTORE_remove (dsh, key, size, data, -1, -1, 547 GNUNET_DATASTORE_remove (dsh, key, size, data, -1, -1,
549 GNUNET_TIME_UNIT_FOREVER_REL, &remove_cont, NULL); 548 GNUNET_TIME_UNIT_FOREVER_REL, &remove_cont, NULL);
550 return GNUNET_SYSERR; 549 return GNUNET_SYSERR;