diff options
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 1e699fea3..af33c4412 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -307,7 +307,7 @@ expired_processor (void *cls, | |||
307 | { | 307 | { |
308 | struct GNUNET_TIME_Absolute now; | 308 | struct GNUNET_TIME_Absolute now; |
309 | 309 | ||
310 | if (key == NULL) | 310 | if (NULL == key) |
311 | { | 311 | { |
312 | expired_kill_task = | 312 | expired_kill_task = |
313 | GNUNET_SCHEDULER_add_delayed_with_priority (MAX_EXPIRE_DELAY, | 313 | GNUNET_SCHEDULER_add_delayed_with_priority (MAX_EXPIRE_DELAY, |
@@ -529,7 +529,7 @@ transmit_item (void *cls, | |||
529 | return GNUNET_OK; | 529 | return GNUNET_OK; |
530 | } | 530 | } |
531 | GNUNET_assert (sizeof (struct DataMessage) + size < | 531 | GNUNET_assert (sizeof (struct DataMessage) + size < |
532 | GNUNET_SERVER_MAX_MESSAGE_SIZE); | 532 | GNUNET_MAX_MESSAGE_SIZE); |
533 | env = GNUNET_MQ_msg_extra (dm, | 533 | env = GNUNET_MQ_msg_extra (dm, |
534 | size, | 534 | size, |
535 | GNUNET_MESSAGE_TYPE_DATASTORE_DATA); | 535 | GNUNET_MESSAGE_TYPE_DATASTORE_DATA); |
@@ -984,12 +984,13 @@ handle_put (void *cls, | |||
984 | size, | 984 | size, |
985 | &vhash); | 985 | &vhash); |
986 | plugin->api->get_key (plugin->api->cls, | 986 | plugin->api->get_key (plugin->api->cls, |
987 | 0, | 987 | 0, |
988 | &dm->key, | 988 | false, |
989 | &vhash, | 989 | &dm->key, |
990 | &vhash, | ||
990 | ntohl (dm->type), | 991 | ntohl (dm->type), |
991 | &check_present, | 992 | &check_present, |
992 | pc); | 993 | pc); |
993 | GNUNET_SERVICE_client_continue (client); | 994 | GNUNET_SERVICE_client_continue (client); |
994 | return; | 995 | return; |
995 | } | 996 | } |
@@ -1018,7 +1019,8 @@ handle_get (void *cls, | |||
1018 | 1, | 1019 | 1, |
1019 | GNUNET_NO); | 1020 | GNUNET_NO); |
1020 | plugin->api->get_key (plugin->api->cls, | 1021 | plugin->api->get_key (plugin->api->cls, |
1021 | GNUNET_ntohll (msg->offset), | 1022 | GNUNET_ntohll (msg->next_uid), |
1023 | msg->random, | ||
1022 | NULL, | 1024 | NULL, |
1023 | NULL, | 1025 | NULL, |
1024 | ntohl (msg->type), | 1026 | ntohl (msg->type), |
@@ -1069,7 +1071,8 @@ handle_get_key (void *cls, | |||
1069 | return; | 1071 | return; |
1070 | } | 1072 | } |
1071 | plugin->api->get_key (plugin->api->cls, | 1073 | plugin->api->get_key (plugin->api->cls, |
1072 | GNUNET_ntohll (msg->offset), | 1074 | GNUNET_ntohll (msg->next_uid), |
1075 | msg->random, | ||
1073 | &msg->key, | 1076 | &msg->key, |
1074 | NULL, | 1077 | NULL, |
1075 | ntohl (msg->type), | 1078 | ntohl (msg->type), |
@@ -1131,7 +1134,7 @@ handle_get_zero_anonymity (void *cls, | |||
1131 | 1, | 1134 | 1, |
1132 | GNUNET_NO); | 1135 | GNUNET_NO); |
1133 | plugin->api->get_zero_anonymity (plugin->api->cls, | 1136 | plugin->api->get_zero_anonymity (plugin->api->cls, |
1134 | GNUNET_ntohll (msg->offset), | 1137 | GNUNET_ntohll (msg->next_uid), |
1135 | type, | 1138 | type, |
1136 | &transmit_item, | 1139 | &transmit_item, |
1137 | client); | 1140 | client); |
@@ -1241,6 +1244,7 @@ handle_remove (void *cls, | |||
1241 | (uint32_t) ntohl (dm->type)); | 1244 | (uint32_t) ntohl (dm->type)); |
1242 | plugin->api->get_key (plugin->api->cls, | 1245 | plugin->api->get_key (plugin->api->cls, |
1243 | 0, | 1246 | 0, |
1247 | false, | ||
1244 | &dm->key, | 1248 | &dm->key, |
1245 | &vhash, | 1249 | &vhash, |
1246 | (enum GNUNET_BLOCK_Type) ntohl (dm->type), | 1250 | (enum GNUNET_BLOCK_Type) ntohl (dm->type), |