From ba47d9ea31c6635578365484b993f252d7c2d022 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 3 Aug 2011 20:59:58 +0000 Subject: improve API, speed up mysql --- src/include/gnunet_datastore_plugin.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include/gnunet_datastore_plugin.h') 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 /** * Get datum (of the specified type) with anonymity level zero. + * This function is allowed to ignore the 'offset' argument + * and instead return a random result (with zero anonymity of + * the correct type) if implementing an offset is expensive. */ PluginGetType get_zero_anonymity; @@ -297,8 +300,9 @@ struct GNUNET_DATASTORE_PluginFunctions PluginGetRandom get_replication; /** - * Function to get a random expired item or, if none are expired, one - * with a low priority. + * Function to get a random expired item or, if none are expired, + * either the oldest entry or one with a low priority (depending + * on what was efficiently implementable). */ PluginGetRandom get_expiration; -- cgit v1.2.3