diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-03 13:47:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-03 13:47:56 +0000 |
commit | 8c23a185ee8d3c16c5552668dced851f82986041 (patch) | |
tree | 83f59d2190ffadcdc5643ba36578b2c6766b0e42 /src/fs/gnunet-service-fs_pr.c | |
parent | 1888cd7da7ae5e2c32faf66d3bef47ac7d225b35 (diff) | |
download | gnunet-8c23a185ee8d3c16c5552668dced851f82986041.tar.gz gnunet-8c23a185ee8d3c16c5552668dced851f82986041.zip |
changing datastore API to support replication level --- not fully implemented --- and adding GNUNET_FS_BlockOptions struct to replace prio/anonymity/expiration+replication args
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index f6b31c4e2..c44a658df 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c | |||
@@ -915,6 +915,7 @@ handle_dht_reply (void *cls, | |||
915 | GNUNET_DATASTORE_put (GSF_dsh, | 915 | GNUNET_DATASTORE_put (GSF_dsh, |
916 | 0, key, size, data, | 916 | 0, key, size, data, |
917 | type, prq.priority, 1 /* anonymity */, | 917 | type, prq.priority, 1 /* anonymity */, |
918 | 0 /* replication */, | ||
918 | exp, | 919 | exp, |
919 | 1 + prq.priority, MAX_DATASTORE_QUEUE, | 920 | 1 + prq.priority, MAX_DATASTORE_QUEUE, |
920 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, | 921 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, |
@@ -1237,6 +1238,7 @@ GSF_handle_p2p_content_ (struct GSF_ConnectedPeer *cp, | |||
1237 | GNUNET_DATASTORE_put (GSF_dsh, | 1238 | GNUNET_DATASTORE_put (GSF_dsh, |
1238 | 0, &query, dsize, &put[1], | 1239 | 0, &query, dsize, &put[1], |
1239 | type, prq.priority, 1 /* anonymity */, | 1240 | type, prq.priority, 1 /* anonymity */, |
1241 | 0 /* replication */, | ||
1240 | expiration, | 1242 | expiration, |
1241 | 1 + prq.priority, MAX_DATASTORE_QUEUE, | 1243 | 1 + prq.priority, MAX_DATASTORE_QUEUE, |
1242 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, | 1244 | GNUNET_CONSTANTS_SERVICE_TIMEOUT, |