aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-15 13:27:55 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-15 13:27:55 +0000
commit83250d05b7a67c36350d7c1a8d6a7aacbfdcd316 (patch)
tree05536fcc0dabf6e567cba8f16c94704f06f6b331 /src/datastore/plugin_datastore_postgres.c
parent774b725aa1aadc64f39fdae76530063b51f3ebc5 (diff)
fixes
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 2cecfa9a11..aea87fdf40 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -998,6 +998,7 @@ postgres_plugin_iter_zero_anonymity (void *cls,
struct NextRequestClosure *nrc;
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
+ nrc->total = UINT32_MAX;
nrc->btype = htonl ((uint32_t) type);
nrc->plugin = plugin;
nrc->iter = iter;
@@ -1125,6 +1126,7 @@ postgres_plugin_replication_get (void *cls,
rc.iter_cls = iter_cls;
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
nrc->one_shot = GNUNET_YES;
+ nrc->total = 1;
nrc->plugin = plugin;
nrc->iter = &repl_iter;
nrc->iter_cls = &rc;
@@ -1153,6 +1155,7 @@ postgres_plugin_expiration_get (void *cls,
btime = GNUNET_htonll (GNUNET_TIME_absolute_get ().abs_value);
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
nrc->one_shot = GNUNET_YES;
+ nrc->total = 1;
nrc->plugin = plugin;
nrc->iter = iter;
nrc->iter_cls = iter_cls;