gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r13998 - gnunet/src/fs
Date: Tue, 21 Dec 2010 17:08:24 +0100

Author: grothoff
Date: 2010-12-21 17:08:24 +0100 (Tue, 21 Dec 2010)
New Revision: 13998

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

Modified: gnunet/src/fs/gnunet-service-fs.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs.c   2010-12-21 15:42:00 UTC (rev 13997)
+++ gnunet/src/fs/gnunet-service-fs.c   2010-12-21 16:08:24 UTC (rev 13998)
@@ -3733,13 +3733,11 @@
                            start);
     }
   putl = GNUNET_LOAD_get_load (datastore_put_load);
-  if ( (GNUNET_NO == prq.request_found) &&
+  if ( (NULL != (cp = prq.sender)) &&
+       (GNUNET_NO == prq.request_found) &&
        ( (GNUNET_YES != active_to_migration) ||
-                (putl > 2.5 * (1 + prq.priority)) ) )
+        (putl > 2.5 * (1 + prq.priority)) ) ) 
     {
-      cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
-                                             &other->hashPubKey);
-      GNUNET_assert (NULL != cp);
       if (GNUNET_TIME_absolute_get_duration 
(cp->last_migration_block).rel_value < 5000)
        return GNUNET_OK; /* already blocked */
       /* We're too busy; send MigrationStop message! */




reply via email to

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