gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24030 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r24030 - gnunet/src/fs
Date: Thu, 27 Sep 2012 09:36:20 +0200

Author: grothoff
Date: 2012-09-27 09:36:20 +0200 (Thu, 27 Sep 2012)
New Revision: 24030

Modified:
   gnunet/src/fs/fs_unindex.c
Log:
-trying to fix unindex trouble on keyword extraction

Modified: gnunet/src/fs/fs_unindex.c
===================================================================
--- gnunet/src/fs/fs_unindex.c  2012-09-27 07:24:53 UTC (rev 24029)
+++ gnunet/src/fs/fs_unindex.c  2012-09-27 07:36:20 UTC (rev 24030)
@@ -341,12 +341,13 @@
     {
       uc->ksk_uri = GNUNET_FS_uri_dup (directory_scan_result->ksk_uri);
       uc->state = UNINDEX_STATE_DS_REMOVE_KBLOCKS;
-      uc->emsg = GNUNET_strdup (_("Failed to get KSKs from directory scan."));
       GNUNET_FS_unindex_sync_ (uc);
       GNUNET_FS_unindex_do_remove_kblocks_ (uc);
     }
     else
     {
+      uc->emsg = GNUNET_strdup (_("Failed to get KSKs from directory scan."));
+      GNUNET_FS_unindex_sync_ (uc);
       unindex_finish (uc);
     }
     GNUNET_FS_share_tree_free (directory_scan_result);
@@ -355,11 +356,15 @@
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                _("Internal error scanning `%s'.\n"),
                uc->filename);
+    GNUNET_FS_directory_scan_abort (uc->dscan);
+    uc->dscan = NULL;
+    uc->emsg = GNUNET_strdup (_("Failed to get KSKs from directory scan."));
+    GNUNET_FS_unindex_sync_ (uc);
+    unindex_finish (uc);
     break;
   default:
     break;
   }
-
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]