aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/gnunet-datastore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-24 20:17:39 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-24 20:17:39 +0000
commit3140154d46212e08e0d73ed891a66213a6813075 (patch)
tree018a55a3899207664b388fcf47a679ca54ca6fbf /src/datastore/gnunet-datastore.c
parentd5fd881c2a044474b54ddf03b6ab8be8d2b75927 (diff)
downloadgnunet-3140154d46212e08e0d73ed891a66213a6813075.tar.gz
gnunet-3140154d46212e08e0d73ed891a66213a6813075.zip
refactoring datastore API to use MQ API, also fixing misc. bugs in new mysql backend
Diffstat (limited to 'src/datastore/gnunet-datastore.c')
-rw-r--r--src/datastore/gnunet-datastore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/gnunet-datastore.c b/src/datastore/gnunet-datastore.c
index ddca4ee06..b3d14c43c 100644
--- a/src/datastore/gnunet-datastore.c
+++ b/src/datastore/gnunet-datastore.c
@@ -137,7 +137,8 @@ do_finish (void *cls,
137static void 137static void
138do_put (void *cls, 138do_put (void *cls,
139 const struct GNUNET_HashCode *key, 139 const struct GNUNET_HashCode *key,
140 size_t size, const void *data, 140 size_t size,
141 const void *data,
141 enum GNUNET_BLOCK_Type type, 142 enum GNUNET_BLOCK_Type type,
142 uint32_t priority, 143 uint32_t priority,
143 uint32_t anonymity, 144 uint32_t anonymity,
@@ -158,7 +159,7 @@ do_put (void *cls,
158 priority, anonymity, 159 priority, anonymity,
159 0 /* FIXME: replication is lost... */, 160 0 /* FIXME: replication is lost... */,
160 expiration, 161 expiration,
161 0, 1, GNUNET_TIME_UNIT_FOREVER_REL, 162 0, 1,
162 &do_finish, NULL); 163 &do_finish, NULL);
163} 164}
164 165
@@ -173,7 +174,6 @@ do_get ()
173 offset, 174 offset,
174 NULL, GNUNET_BLOCK_TYPE_ANY, 175 NULL, GNUNET_BLOCK_TYPE_ANY,
175 0, 1, 176 0, 1,
176 GNUNET_TIME_UNIT_FOREVER_REL,
177 &do_put, NULL); 177 &do_put, NULL);
178} 178}
179 179