diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-28 21:12:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-28 21:12:03 +0000 |
commit | 3a2737d76679c68331fad0be0b89d8efdcde5079 (patch) | |
tree | 5bd4ef163438954cdcb75558e6368a297629b56d /src/dht/gnunet-service-dht_clients.c | |
parent | 9c46ed792caae948fd99cca44deaf5a265af7614 (diff) | |
download | gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.tar.gz gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.zip |
-extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB
Diffstat (limited to 'src/dht/gnunet-service-dht_clients.c')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index ae9e3f25d..ec957737f 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -1055,12 +1055,20 @@ forward_reply (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
1055 | return GNUNET_YES; /* duplicate */ | 1055 | return GNUNET_YES; /* duplicate */ |
1056 | } | 1056 | } |
1057 | eval = | 1057 | eval = |
1058 | GNUNET_BLOCK_evaluate (GDS_block_context, record->type, key, NULL, 0, | 1058 | GNUNET_BLOCK_evaluate (GDS_block_context, |
1059 | record->xquery, record->xquery_size, frc->data, | 1059 | record->type, |
1060 | GNUNET_BLOCK_EO_NONE, | ||
1061 | key, | ||
1062 | NULL, | ||
1063 | 0, | ||
1064 | record->xquery, | ||
1065 | record->xquery_size, | ||
1066 | frc->data, | ||
1060 | frc->data_size); | 1067 | frc->data_size); |
1061 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1068 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1062 | "Evaluation result is %d for key %s for local client's query\n", | 1069 | "Evaluation result is %d for key %s for local client's query\n", |
1063 | (int) eval, GNUNET_h2s (key)); | 1070 | (int) eval, |
1071 | GNUNET_h2s (key)); | ||
1064 | switch (eval) | 1072 | switch (eval) |
1065 | { | 1073 | { |
1066 | case GNUNET_BLOCK_EVALUATION_OK_LAST: | 1074 | case GNUNET_BLOCK_EVALUATION_OK_LAST: |