gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r26829 - gnunet/src/peerinfo


From: gnunet
Subject: [GNUnet-SVN] r26829 - gnunet/src/peerinfo
Date: Wed, 10 Apr 2013 11:57:01 +0200

Author: wachs
Date: 2013-04-10 11:57:01 +0200 (Wed, 10 Apr 2013)
New Revision: 26829

Modified:
   gnunet/src/peerinfo/gnunet-service-peerinfo.c
Log:
 fix


Modified: gnunet/src/peerinfo/gnunet-service-peerinfo.c
===================================================================
--- gnunet/src/peerinfo/gnunet-service-peerinfo.c       2013-04-10 09:48:55 UTC 
(rev 26828)
+++ gnunet/src/peerinfo/gnunet-service-peerinfo.c       2013-04-10 09:57:01 UTC 
(rev 26829)
@@ -514,7 +514,7 @@
        entry->identity = *identity;
        GNUNET_CONTAINER_multihashmap_put (hostmap, 
&entry->identity.hashPubKey, entry,
                                      
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY);
-
+    notify_all (entry);
     fn = get_host_filename (identity);
     if (NULL != fn)
     {
@@ -527,7 +527,6 @@
       GNUNET_free_non_null (r.friend_only_hello);
       GNUNET_free (fn);
     }
-    notify_all (entry);
   }
   return entry;
 }
@@ -698,6 +697,8 @@
   }
   dsc.matched = 0;
   dsc.remove_files = GNUNET_YES;
+  GNUNET_log (GNUNET_ERROR_TYPE_INFO | GNUNET_ERROR_TYPE_BULK,
+              _("Scanning directory `%s'\n"), networkIdDirectory);
   GNUNET_DISK_directory_scan (networkIdDirectory,
                               &hosts_directory_scan_callback, &dsc);
   if ((0 == dsc.matched) && (0 == (++retries & 31)))
@@ -788,6 +789,9 @@
     if (delta.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value)
     {
       /* no differences, just ignore the update */
+       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "No change in %s HELLO for `%s'\n",
+                       (GNUNET_YES == friend_hello_type) ? "friend-only" : 
"public",
+                       GNUNET_i2s (peer));
       GNUNET_free (mrg);
       return;
     }
@@ -1264,13 +1268,13 @@
                                                            "HOSTS",
                                                            
&networkIdDirectory));
     GNUNET_DISK_directory_create (networkIdDirectory);
-#if 0
+
     GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE,
                                        &cron_scan_directory_data_hosts, NULL); 
/* CHECK */
 
     GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE,
                                        &cron_clean_data_hosts, NULL); /* CHECK 
*/
-#endif
+
     ip = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR);
     GNUNET_asprintf (&peerdir,
                     "%shellos",




reply via email to

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