gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14984 - gnunet/src/datastore


From: gnunet
Subject: [GNUnet-SVN] r14984 - gnunet/src/datastore
Date: Fri, 15 Apr 2011 13:14:55 +0200

Author: grothoff
Date: 2011-04-15 13:14:55 +0200 (Fri, 15 Apr 2011)
New Revision: 14984

Modified:
   gnunet/src/datastore/plugin_datastore_mysql.c
Log:
fix

Modified: gnunet/src/datastore/plugin_datastore_mysql.c
===================================================================
--- gnunet/src/datastore/plugin_datastore_mysql.c       2011-04-15 10:30:19 UTC 
(rev 14983)
+++ gnunet/src/datastore/plugin_datastore_mysql.c       2011-04-15 11:14:55 UTC 
(rev 14984)
@@ -946,7 +946,7 @@
              exp);
 #endif
   expiration.abs_value = exp;
-  ret = nrc->dviter (nrc->dviter_cls, nrc,
+  ret = nrc->dviter (nrc->dviter_cls, (nrc->end_it == GNUNET_YES) ? NULL : nrc,
                     &key,
                     size, value,
                     type, priority, anonymity, expiration,
@@ -1466,6 +1466,7 @@
 {
   struct Plugin *plugin = cls;
 
+  nrc->end_it = GNUNET_YES;
   return prepared_statement_run_select (plugin,
                                        plugin->select_replication, 
                                        7, nrc->rbind, 
@@ -1521,6 +1522,7 @@
 
   if (NULL == nrc)
     return GNUNET_NO;
+  nrc->end_it = GNUNET_YES;
   nt = (long long) nrc->now.abs_value;
   return prepared_statement_run_select
     (plugin,




reply via email to

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