aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-02-20 13:08:08 -0600
committerDavid Barksdale <amatus@amat.us>2017-02-20 13:11:19 -0600
commitfe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a (patch)
treecbcbc99a93ec8f466426190a340cc46f54d2641e /src/include
parentf553963d649374a75cc5a6e57df39d83565eb913 (diff)
downloadgnunet-fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a.tar.gz
gnunet-fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a.zip
Restrict update to positive priority deltas
This is only ever called with positive values and the mysql and postgres plugins were not handling negative values correctly anyway.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_datastore_plugin.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/gnunet_datastore_plugin.h b/src/include/gnunet_datastore_plugin.h
index 71c69ffaf..2295d4e72 100644
--- a/src/include/gnunet_datastore_plugin.h
+++ b/src/include/gnunet_datastore_plugin.h
@@ -268,9 +268,7 @@ typedef void
268 * @param cls closure 268 * @param cls closure
269 * @param uid unique identifier of the datum 269 * @param uid unique identifier of the datum
270 * @param delta by how much should the priority 270 * @param delta by how much should the priority
271 * change? If priority + delta < 0 the 271 * change?
272 * priority should be set to 0 (never go
273 * negative).
274 * @param expire new expiration time should be the 272 * @param expire new expiration time should be the
275 * MAX of any existing expiration time and 273 * MAX of any existing expiration time and
276 * this value 274 * this value
@@ -280,7 +278,7 @@ typedef void
280typedef void 278typedef void
281(*PluginUpdate) (void *cls, 279(*PluginUpdate) (void *cls,
282 uint64_t uid, 280 uint64_t uid,
283 int delta, 281 uint32_t delta,
284 struct GNUNET_TIME_Absolute expire, 282 struct GNUNET_TIME_Absolute expire,
285 PluginUpdateCont cont, 283 PluginUpdateCont cont,
286 void *cont_cls); 284 void *cont_cls);