diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-03 21:20:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-03 21:20:07 +0000 |
commit | 1911cc508e10a4052499ba41e565edf57184daf7 (patch) | |
tree | 75baa9795123ffcdf8c12e86705cfa3f31cf37a0 /src/datastore | |
parent | 236e47e55554310cc19b8c37c7b844d53a239f28 (diff) | |
download | gnunet-1911cc508e10a4052499ba41e565edf57184daf7.tar.gz gnunet-1911cc508e10a4052499ba41e565edf57184daf7.zip |
use new quota parsing capabilities -- SVN 1875
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/datastore.conf | 2 | ||||
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 2 | ||||
-rw-r--r-- | src/datastore/test_datastore_api_data_mysql.conf | 2 | ||||
-rw-r--r-- | src/datastore/test_datastore_api_data_postgres.conf | 2 | ||||
-rw-r--r-- | src/datastore/test_datastore_api_data_sqlite.conf | 2 | ||||
-rw-r--r-- | src/datastore/test_defaults.conf | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/datastore/datastore.conf b/src/datastore/datastore.conf index ed44036c7..e86c75bb6 100644 --- a/src/datastore/datastore.conf +++ b/src/datastore/datastore.conf | |||
@@ -10,7 +10,7 @@ CONFIG = $DEFAULTCONFIG | |||
10 | BINARY = gnunet-service-datastore | 10 | BINARY = gnunet-service-datastore |
11 | ACCEPT_FROM = 127.0.0.1; | 11 | ACCEPT_FROM = 127.0.0.1; |
12 | ACCEPT_FROM6 = ::1; | 12 | ACCEPT_FROM6 = ::1; |
13 | QUOTA = 100000000 | 13 | QUOTA = 100 MB |
14 | BLOOMFILTER = $SERVICEHOME/fs/bloomfilter | 14 | BLOOMFILTER = $SERVICEHOME/fs/bloomfilter |
15 | DATABASE = sqlite | 15 | DATABASE = sqlite |
16 | # DISABLE_SOCKET_FORWARDING = NO | 16 | # DISABLE_SOCKET_FORWARDING = NO |
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 71379d5db..be88d288e 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -1480,7 +1480,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1480 | 1480 | ||
1481 | cfg = c; | 1481 | cfg = c; |
1482 | if (GNUNET_OK != | 1482 | if (GNUNET_OK != |
1483 | GNUNET_CONFIGURATION_get_value_number (cfg, "DATASTORE", "QUOTA", "a)) | 1483 | GNUNET_CONFIGURATION_get_value_size (cfg, "DATASTORE", "QUOTA", "a)) |
1484 | { | 1484 | { |
1485 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1485 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1486 | _("No `%s' specified for `%s' in configuration!\n"), "QUOTA", | 1486 | _("No `%s' specified for `%s' in configuration!\n"), "QUOTA", |
diff --git a/src/datastore/test_datastore_api_data_mysql.conf b/src/datastore/test_datastore_api_data_mysql.conf index 3dc17c3af..8e5a3dc0d 100644 --- a/src/datastore/test_datastore_api_data_mysql.conf +++ b/src/datastore/test_datastore_api_data_mysql.conf | |||
@@ -17,7 +17,7 @@ PORT = 22667 | |||
17 | PORT = 42464 | 17 | PORT = 42464 |
18 | 18 | ||
19 | [datastore] | 19 | [datastore] |
20 | QUOTA = 10000000 | 20 | QUOTA = 10 MB |
21 | DATABASE = mysql | 21 | DATABASE = mysql |
22 | 22 | ||
23 | [datastore-mysql] | 23 | [datastore-mysql] |
diff --git a/src/datastore/test_datastore_api_data_postgres.conf b/src/datastore/test_datastore_api_data_postgres.conf index c806ab5be..046c561f4 100644 --- a/src/datastore/test_datastore_api_data_postgres.conf +++ b/src/datastore/test_datastore_api_data_postgres.conf | |||
@@ -17,7 +17,7 @@ PORT = 22667 | |||
17 | PORT = 42464 | 17 | PORT = 42464 |
18 | 18 | ||
19 | [datastore] | 19 | [datastore] |
20 | QUOTA = 10000000 | 20 | QUOTA = 10 MB |
21 | DATABASE = postgres | 21 | DATABASE = postgres |
22 | 22 | ||
23 | [datastore-postgres] | 23 | [datastore-postgres] |
diff --git a/src/datastore/test_datastore_api_data_sqlite.conf b/src/datastore/test_datastore_api_data_sqlite.conf index eaf4f2b5c..098f9d2b6 100644 --- a/src/datastore/test_datastore_api_data_sqlite.conf +++ b/src/datastore/test_datastore_api_data_sqlite.conf | |||
@@ -17,7 +17,7 @@ PORT = 22667 | |||
17 | PORT = 42464 | 17 | PORT = 42464 |
18 | 18 | ||
19 | [datastore] | 19 | [datastore] |
20 | QUOTA = 10000000 | 20 | QUOTA = 10 MB |
21 | 21 | ||
22 | [fs] | 22 | [fs] |
23 | AUTOSTART = NO | 23 | AUTOSTART = NO |
diff --git a/src/datastore/test_defaults.conf b/src/datastore/test_defaults.conf index e2911fc2d..bbc1ad190 100644 --- a/src/datastore/test_defaults.conf +++ b/src/datastore/test_defaults.conf | |||
@@ -1,6 +1,6 @@ | |||
1 | [datastore] | 1 | [datastore] |
2 | PORT = 22654 | 2 | PORT = 22654 |
3 | QUOTA = 1000000 | 3 | QUOTA = 1 MB |
4 | 4 | ||
5 | [dht] | 5 | [dht] |
6 | AUTOSTART = NO | 6 | AUTOSTART = NO |