aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index d9bc5b212..23af3960d 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -162,7 +162,7 @@ database_setup (struct Plugin *plugin)
162 " ORDER BY uid ASC" 162 " ORDER BY uid ASC"
163 " LIMIT ?", 163 " LIMIT ?",
164 &plugin->iterate_all_zones), 164 &plugin->iterate_all_zones),
165 GNUNET_SQ_make_prepare ("SELECT uid,record_count,record_data,label,zone_private_key" 165 GNUNET_SQ_make_prepare ("SELECT uid,record_count,record_data,label"
166 " FROM ns098records" 166 " FROM ns098records"
167 " WHERE zone_private_key=? AND label=?", 167 " WHERE zone_private_key=? AND label=?",
168 &plugin->lookup_label), 168 &plugin->lookup_label),
@@ -501,16 +501,10 @@ get_records_and_call_iterator (struct Plugin *plugin,
501 GNUNET_SQ_result_spec_end 501 GNUNET_SQ_result_spec_end
502 }; 502 };
503 503
504 if (NULL == zone_key) 504 ret = GNUNET_SQ_extract_result (stmt,
505 { 505 (NULL == zone_key)
506 ret = GNUNET_SQ_extract_result (stmt, 506 ? rsx
507 rsx); 507 : rs);
508 }
509 else
510 {
511 ret = GNUNET_SQ_extract_result (stmt,
512 rs);
513 }
514 if ( (GNUNET_OK != ret) || 508 if ( (GNUNET_OK != ret) ||
515 (record_count > 64 * 1024) ) 509 (record_count > 64 * 1024) )
516 { 510 {