diff options
Diffstat (limited to 'src/namecache/plugin_namecache_postgres.c')
-rw-r--r-- | src/namecache/plugin_namecache_postgres.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/namecache/plugin_namecache_postgres.c b/src/namecache/plugin_namecache_postgres.c index 3cf11f1d8..d943b0cd8 100644 --- a/src/namecache/plugin_namecache_postgres.c +++ b/src/namecache/plugin_namecache_postgres.c | |||
@@ -153,12 +153,12 @@ namecache_postgres_expire_blocks (struct Plugin *plugin) | |||
153 | GNUNET_PQ_query_param_absolute_time (&now), | 153 | GNUNET_PQ_query_param_absolute_time (&now), |
154 | GNUNET_PQ_query_param_end | 154 | GNUNET_PQ_query_param_end |
155 | }; | 155 | }; |
156 | enum GNUNET_PQ_QueryStatus res; | 156 | enum GNUNET_DB_QueryStatus res; |
157 | 157 | ||
158 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, | 158 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
159 | "expire_blocks", | 159 | "expire_blocks", |
160 | params); | 160 | params); |
161 | GNUNET_break (GNUNET_PQ_STATUS_HARD_ERROR != res); | 161 | GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != res); |
162 | } | 162 | } |
163 | 163 | ||
164 | 164 | ||
@@ -179,12 +179,12 @@ delete_old_block (struct Plugin *plugin, | |||
179 | GNUNET_PQ_query_param_absolute_time_nbo (&expiration_time), | 179 | GNUNET_PQ_query_param_absolute_time_nbo (&expiration_time), |
180 | GNUNET_PQ_query_param_end | 180 | GNUNET_PQ_query_param_end |
181 | }; | 181 | }; |
182 | enum GNUNET_PQ_QueryStatus res; | 182 | enum GNUNET_DB_QueryStatus res; |
183 | 183 | ||
184 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, | 184 | res = GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
185 | "delete_block", | 185 | "delete_block", |
186 | params); | 186 | params); |
187 | GNUNET_break (GNUNET_PQ_STATUS_HARD_ERROR != res); | 187 | GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != res); |
188 | } | 188 | } |
189 | 189 | ||
190 | 190 | ||
@@ -210,7 +210,7 @@ namecache_postgres_cache_block (void *cls, | |||
210 | GNUNET_PQ_query_param_absolute_time_nbo (&block->expiration_time), | 210 | GNUNET_PQ_query_param_absolute_time_nbo (&block->expiration_time), |
211 | GNUNET_PQ_query_param_end | 211 | GNUNET_PQ_query_param_end |
212 | }; | 212 | }; |
213 | enum GNUNET_PQ_QueryStatus res; | 213 | enum GNUNET_DB_QueryStatus res; |
214 | 214 | ||
215 | namecache_postgres_expire_blocks (plugin); | 215 | namecache_postgres_expire_blocks (plugin); |
216 | GNUNET_CRYPTO_hash (&block->derived_key, | 216 | GNUNET_CRYPTO_hash (&block->derived_key, |
@@ -263,7 +263,7 @@ namecache_postgres_lookup_block (void *cls, | |||
263 | &bsize), | 263 | &bsize), |
264 | GNUNET_PQ_result_spec_end | 264 | GNUNET_PQ_result_spec_end |
265 | }; | 265 | }; |
266 | enum GNUNET_PQ_QueryStatus res; | 266 | enum GNUNET_DB_QueryStatus res; |
267 | 267 | ||
268 | res = GNUNET_PQ_eval_prepared_singleton_select (plugin->dbh, | 268 | res = GNUNET_PQ_eval_prepared_singleton_select (plugin->dbh, |
269 | "lookup_block", | 269 | "lookup_block", |
@@ -275,7 +275,7 @@ namecache_postgres_lookup_block (void *cls, | |||
275 | "Failing lookup block in namecache (postgres error)\n"); | 275 | "Failing lookup block in namecache (postgres error)\n"); |
276 | return GNUNET_SYSERR; | 276 | return GNUNET_SYSERR; |
277 | } | 277 | } |
278 | if (GNUNET_PQ_STATUS_SUCCESS_NO_RESULTS == res) | 278 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == res) |
279 | { | 279 | { |
280 | /* no result */ | 280 | /* no result */ |
281 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 281 | LOG (GNUNET_ERROR_TYPE_DEBUG, |