gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5127 - GNUnet/src/applications/fs/module


From: gnunet
Subject: [GNUnet-SVN] r5127 - GNUnet/src/applications/fs/module
Date: Sat, 23 Jun 2007 06:56:17 -0600 (MDT)

Author: grothoff
Date: 2007-06-23 06:56:17 -0600 (Sat, 23 Jun 2007)
New Revision: 5127

Modified:
   GNUnet/src/applications/fs/module/migration.c
Log:
fix

Modified: GNUnet/src/applications/fs/module/migration.c
===================================================================
--- GNUnet/src/applications/fs/module/migration.c       2007-06-23 09:41:27 UTC 
(rev 5126)
+++ GNUnet/src/applications/fs/module/migration.c       2007-06-23 12:56:17 UTC 
(rev 5127)
@@ -148,6 +148,7 @@
       discard_match = MAX_RECEIVERS + 1;
       continue;
     }
+    match = 1;
     if (ntohl(content[i].value->size) + sizeof(GapWrapper) - 
sizeof(Datastore_Value) <= padding) {
       match = 0;
       for (j=0;j<content[i].sentCount;j++) {
@@ -156,18 +157,18 @@
          break;
        }
       }
-      if (match == 0) {
-       /* TODO: consider key proximity in matching as 
-          well! */
-       entry = i;
-       break;
-      } else {
-       if (content[i].sentCount > discard_match) {
-         discard_match = content[i].sentCount;
-         discard_entry = i;
-       }
+    }
+    if (match == 0) {
+      /* TODO: consider key proximity in matching as 
+        well! */
+      entry = i;
+      break;
+    } else {
+      if (content[i].sentCount > discard_match) {
+       discard_match = content[i].sentCount;
+       discard_entry = i;
       }
-    }
+    }    
   }
   if (entry == -1) {
     entry = discard_entry;





reply via email to

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