gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6200 - GNUnet/src/applications/fs/gap


From: gnunet
Subject: [GNUnet-SVN] r6200 - GNUnet/src/applications/fs/gap
Date: Fri, 8 Feb 2008 00:29:15 -0700 (MST)

Author: grothoff
Date: 2008-02-08 00:29:15 -0700 (Fri, 08 Feb 2008)
New Revision: 6200

Modified:
   GNUnet/src/applications/fs/gap/ondemand.c
Log:
fx

Modified: GNUnet/src/applications/fs/gap/ondemand.c
===================================================================
--- GNUnet/src/applications/fs/gap/ondemand.c   2008-02-08 07:07:12 UTC (rev 
6199)
+++ GNUnet/src/applications/fs/gap/ondemand.c   2008-02-08 07:29:15 UTC (rev 
6200)
@@ -549,9 +549,9 @@
       odb.fileId = *fileId;
       /* compute the primary key */
       GNUNET_EC_file_block_get_query (block, delta + sizeof (DBlock), &key);
-      if ( (1 == datastore->get (&key,
-                                GNUNET_ECRS_BLOCKTYPE_ONDEMAND,
-                                
&GNUNET_FS_HELPER_complete_value_from_database_callback, &odb.header)) &&
+      if ( (0 < datastore->get (&key,
+                               GNUNET_ECRS_BLOCKTYPE_ONDEMAND,
+                               
&GNUNET_FS_HELPER_complete_value_from_database_callback, &odb.header)) &&
           (odb.header.expirationTime != 0) )
         ret = datastore->del (&key, &odb.header);
       else                      /* not found */





reply via email to

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