[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: NAMESTORE: sqlite plugins c
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: NAMESTORE: sqlite plugins cleanup |
Date: |
Mon, 15 Oct 2018 16:27:06 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 1ca9b7ee0 NAMESTORE: sqlite plugins cleanup
1ca9b7ee0 is described below
commit 1ca9b7ee09328a33f5f428ee3c37acc8479e31fa
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Mon Oct 15 23:26:58 2018 +0900
NAMESTORE: sqlite plugins cleanup
---
src/namestore/plugin_namestore_sqlite.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/namestore/plugin_namestore_sqlite.c
b/src/namestore/plugin_namestore_sqlite.c
index a47121082..d9bc5b212 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -152,13 +152,13 @@ database_setup (struct Plugin *plugin)
&plugin->zone_to_name),
GNUNET_SQ_make_prepare ("SELECT uid,record_count,record_data,label"
" FROM ns098records"
- " WHERE zone_private_key=? AND uid >= ?"
+ " WHERE zone_private_key=? AND uid > ?"
" ORDER BY uid ASC"
" LIMIT ?",
&plugin->iterate_zone),
GNUNET_SQ_make_prepare ("SELECT
uid,record_count,record_data,label,zone_private_key"
" FROM ns098records"
- " WHERE uid >= ?"
+ " WHERE uid > ?"
" ORDER BY uid ASC"
" LIMIT ?",
&plugin->iterate_all_zones),
@@ -627,12 +627,11 @@ namestore_sqlite_iterate_records (void *cls,
struct Plugin *plugin = cls;
sqlite3_stmt *stmt;
int err;
- uint64_t rowid = serial + 1; //SQLite starts counting at 1
if (NULL == zone)
{
struct GNUNET_SQ_QueryParam params[] = {
- GNUNET_SQ_query_param_uint64 (&rowid),
+ GNUNET_SQ_query_param_uint64 (&serial),
GNUNET_SQ_query_param_uint64 (&limit),
GNUNET_SQ_query_param_end
};
@@ -645,7 +644,7 @@ namestore_sqlite_iterate_records (void *cls,
{
struct GNUNET_SQ_QueryParam params[] = {
GNUNET_SQ_query_param_auto_from_type (zone),
- GNUNET_SQ_query_param_uint64 (&rowid),
+ GNUNET_SQ_query_param_uint64 (&serial),
GNUNET_SQ_query_param_uint64 (&limit),
GNUNET_SQ_query_param_end
};
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: NAMESTORE: sqlite plugins cleanup,
gnunet <=