diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:24:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:24:10 +0000 |
commit | 2fbce9fa99ecd721ad54f8f1a1fe25a6d782df1f (patch) | |
tree | 5bee969e827b032257863483645422000b4bda16 /src/fs | |
parent | 1760e2548dc3733f479e53161674bcaba5609d4f (diff) | |
download | gnunet-2fbce9fa99ecd721ad54f8f1a1fe25a6d782df1f.tar.gz gnunet-2fbce9fa99ecd721ad54f8f1a1fe25a6d782df1f.zip |
fix 1866 -- stats instead of warning
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index ab3f77abe..ce3f21cd6 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -538,6 +538,16 @@ 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 (0 != ACCESS (fn, R_OK)) | ||
542 | { | ||
543 | GNUNET_STATISTICS_update (GSF_stats, | ||
544 | gettext_noop ("# index blocks removed: original file inaccessible"), | ||
545 | 1, | ||
546 | GNUNET_YES); | ||
547 | GNUNET_DATASTORE_remove (dsh, key, size, data, -1, -1, | ||
548 | GNUNET_TIME_UNIT_FOREVER_REL, &remove_cont, NULL); | ||
549 | return GNUNET_SYSERR; | ||
550 | } | ||
541 | fh = NULL; | 551 | fh = NULL; |
542 | if ((NULL == fn) || | 552 | if ((NULL == fn) || |
543 | (NULL == | 553 | (NULL == |