diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-03 20:59:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-03 20:59:58 +0000 |
commit | ba47d9ea31c6635578365484b993f252d7c2d022 (patch) | |
tree | 5c41f5faa60b0b1fa2224b1e293394bc91e6f053 /src/include/gnunet_datastore_plugin.h | |
parent | dd1dcb51fe9ad99b0f81598d4045d2e957834843 (diff) | |
download | gnunet-ba47d9ea31c6635578365484b993f252d7c2d022.tar.gz gnunet-ba47d9ea31c6635578365484b993f252d7c2d022.zip |
improve API, speed up mysql
Diffstat (limited to 'src/include/gnunet_datastore_plugin.h')
-rw-r--r-- | src/include/gnunet_datastore_plugin.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/gnunet_datastore_plugin.h b/src/include/gnunet_datastore_plugin.h index 7d1a3a369..fe4cefb0a 100644 --- a/src/include/gnunet_datastore_plugin.h +++ b/src/include/gnunet_datastore_plugin.h | |||
@@ -284,6 +284,9 @@ struct GNUNET_DATASTORE_PluginFunctions | |||
284 | 284 | ||
285 | /** | 285 | /** |
286 | * Get datum (of the specified type) with anonymity level zero. | 286 | * Get datum (of the specified type) with anonymity level zero. |
287 | * This function is allowed to ignore the 'offset' argument | ||
288 | * and instead return a random result (with zero anonymity of | ||
289 | * the correct type) if implementing an offset is expensive. | ||
287 | */ | 290 | */ |
288 | PluginGetType get_zero_anonymity; | 291 | PluginGetType get_zero_anonymity; |
289 | 292 | ||
@@ -297,8 +300,9 @@ struct GNUNET_DATASTORE_PluginFunctions | |||
297 | PluginGetRandom get_replication; | 300 | PluginGetRandom get_replication; |
298 | 301 | ||
299 | /** | 302 | /** |
300 | * Function to get a random expired item or, if none are expired, one | 303 | * Function to get a random expired item or, if none are expired, |
301 | * with a low priority. | 304 | * either the oldest entry or one with a low priority (depending |
305 | * on what was efficiently implementable). | ||
302 | */ | 306 | */ |
303 | PluginGetRandom get_expiration; | 307 | PluginGetRandom get_expiration; |
304 | 308 | ||