gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r38135 - gnunet/src/psycstore


From: gnunet
Subject: [GNUnet-SVN] r38135 - gnunet/src/psycstore
Date: Wed, 12 Oct 2016 18:41:40 +0200

Author: tg
Date: 2016-10-12 18:41:40 +0200 (Wed, 12 Oct 2016)
New Revision: 38135

Modified:
   gnunet/src/psycstore/plugin_psycstore_mysql.c
   gnunet/src/psycstore/plugin_psycstore_sqlite.c
Log:
psycstore: fix limit

Modified: gnunet/src/psycstore/plugin_psycstore_mysql.c
===================================================================
--- gnunet/src/psycstore/plugin_psycstore_mysql.c       2016-10-12 16:41:39 UTC 
(rev 38134)
+++ gnunet/src/psycstore/plugin_psycstore_mysql.c       2016-10-12 16:41:40 UTC 
(rev 38135)
@@ -1222,6 +1222,10 @@
   struct Plugin *plugin = cls;
   struct GNUNET_MYSQL_StatementHandle *stmt = plugin->select_messages;
   int ret;
+
+  if (0 == fragment_limit)
+    fragment_limit = UINT64_MAX;
+
   struct GNUNET_MY_QueryParam params_select[] = {
     GNUNET_MY_query_param_auto_from_type (channel_key),
     GNUNET_MY_query_param_uint64 (&first_message_id),

Modified: gnunet/src/psycstore/plugin_psycstore_sqlite.c
===================================================================
--- gnunet/src/psycstore/plugin_psycstore_sqlite.c      2016-10-12 16:41:39 UTC 
(rev 38134)
+++ gnunet/src/psycstore/plugin_psycstore_sqlite.c      2016-10-12 16:41:40 UTC 
(rev 38135)
@@ -1214,7 +1214,7 @@
       || SQLITE_OK != sqlite3_bind_int64 (stmt, 4,
                                           (0 != fragment_limit)
                                           ? fragment_limit
-                                          : -1))
+                                          : INT64_MAX))
   {
     LOG_SQLITE (plugin, GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
                 "sqlite3_bind");




reply via email to

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