diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-24 20:17:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-24 20:17:39 +0000 |
commit | 3140154d46212e08e0d73ed891a66213a6813075 (patch) | |
tree | 018a55a3899207664b388fcf47a679ca54ca6fbf /src/datastore/gnunet-datastore.c | |
parent | d5fd881c2a044474b54ddf03b6ab8be8d2b75927 (diff) | |
download | gnunet-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.c | 6 |
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, | |||
137 | static void | 137 | static void |
138 | do_put (void *cls, | 138 | do_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 | ||