diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-05 13:39:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-05 13:39:20 +0000 |
commit | eb123f37892e3fd79a33f0375ab99a52dc4b6915 (patch) | |
tree | be7a0b81e43496742d1242f5819d43e09e59830e /src/fs/fs_unindex.c | |
parent | b93c5a4845284ddf08f57d6487a8950c36405bdc (diff) | |
download | gnunet-eb123f37892e3fd79a33f0375ab99a52dc4b6915.tar.gz gnunet-eb123f37892e3fd79a33f0375ab99a52dc4b6915.zip |
bugs
Diffstat (limited to 'src/fs/fs_unindex.c')
-rw-r--r-- | src/fs/fs_unindex.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fs/fs_unindex.c b/src/fs/fs_unindex.c index c5502d3fe..d422546ca 100644 --- a/src/fs/fs_unindex.c +++ b/src/fs/fs_unindex.c | |||
@@ -454,6 +454,7 @@ GNUNET_FS_unindex_start (struct GNUNET_FS_Handle *h, | |||
454 | pi.status = GNUNET_FS_STATUS_UNINDEX_START; | 454 | pi.status = GNUNET_FS_STATUS_UNINDEX_START; |
455 | pi.value.unindex.eta = GNUNET_TIME_UNIT_FOREVER_REL; | 455 | pi.value.unindex.eta = GNUNET_TIME_UNIT_FOREVER_REL; |
456 | GNUNET_FS_unindex_make_status_ (&pi, ret, 0); | 456 | GNUNET_FS_unindex_make_status_ (&pi, ret, 0); |
457 | /* FIXME: must be able to abort hashing here! */ | ||
457 | GNUNET_CRYPTO_hash_file (h->sched, | 458 | GNUNET_CRYPTO_hash_file (h->sched, |
458 | GNUNET_SCHEDULER_PRIORITY_IDLE, | 459 | GNUNET_SCHEDULER_PRIORITY_IDLE, |
459 | filename, | 460 | filename, |
@@ -476,7 +477,12 @@ void | |||
476 | GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc) | 477 | GNUNET_FS_unindex_stop (struct GNUNET_FS_UnindexContext *uc) |
477 | { | 478 | { |
478 | struct GNUNET_FS_ProgressInfo pi; | 479 | struct GNUNET_FS_ProgressInfo pi; |
479 | 480 | ||
481 | /* FIXME: stop hashing (if still ongoing) */ | ||
482 | /* FIXME: disconnect uc->client (if still connected) */ | ||
483 | /* FIXME: disconnect from datastore (if still connected) */ | ||
484 | /* FIXME: other termination operations? */ | ||
485 | /* FIXME: must do same cleanup in 'unindex_signal_suspend'! */ | ||
480 | GNUNET_FS_end_top (uc->h, uc->top); | 486 | GNUNET_FS_end_top (uc->h, uc->top); |
481 | if ( (uc->state != UNINDEX_STATE_COMPLETE) && | 487 | if ( (uc->state != UNINDEX_STATE_COMPLETE) && |
482 | (uc->state != UNINDEX_STATE_ERROR) ) | 488 | (uc->state != UNINDEX_STATE_ERROR) ) |