diff options
author | David Barksdale <amatus@amat.us> | 2017-02-20 13:08:08 -0600 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-02-20 13:11:19 -0600 |
commit | fe4f6e8cedfa8d0a57b0247727fc4849d38c2f3a (patch) | |
tree | cbcbc99a93ec8f466426190a340cc46f54d2641e /src/include/gnunet_datastore_plugin.h | |
parent | f553963d649374a75cc5a6e57df39d83565eb913 (diff) | |
download | gnunet-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/gnunet_datastore_plugin.h')
-rw-r--r-- | src/include/gnunet_datastore_plugin.h | 6 |
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 | |||
280 | typedef void | 278 | typedef 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); |