diff options
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index e605da8fc..7c4c47e90 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -409,7 +409,7 @@ quota_processor (void *cls, const struct GNUNET_HashCode * key, uint32_t size, | |||
409 | "Deleting %llu bytes of low-priority (%u) content `%s' of type %u at %s prior to expiration (still trying to free another %llu bytes)\n", | 409 | "Deleting %llu bytes of low-priority (%u) content `%s' of type %u at %s prior to expiration (still trying to free another %llu bytes)\n", |
410 | (unsigned long long) (size + GNUNET_DATASTORE_ENTRY_OVERHEAD), | 410 | (unsigned long long) (size + GNUNET_DATASTORE_ENTRY_OVERHEAD), |
411 | (unsigned int) priority, | 411 | (unsigned int) priority, |
412 | GNUNET_h2s (key), type, | 412 | GNUNET_h2s (key), type, |
413 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (expiration), | 413 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (expiration), |
414 | GNUNET_YES), | 414 | GNUNET_YES), |
415 | *need); | 415 | *need); |
@@ -1473,7 +1473,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1473 | sizeof (struct GNUNET_MessageHeader)}, | 1473 | sizeof (struct GNUNET_MessageHeader)}, |
1474 | {NULL, NULL, 0, 0} | 1474 | {NULL, NULL, 0, 0} |
1475 | }; | 1475 | }; |
1476 | char *fn; | 1476 | char *fn; |
1477 | char *pfn; | 1477 | char *pfn; |
1478 | unsigned int bf_size; | 1478 | unsigned int bf_size; |
1479 | int refresh_bf; | 1479 | int refresh_bf; |
@@ -1504,7 +1504,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1504 | cache_size = quota / 8; /* Or should we make this an option? */ | 1504 | cache_size = quota / 8; /* Or should we make this an option? */ |
1505 | GNUNET_STATISTICS_set (stats, gettext_noop ("# cache size"), cache_size, | 1505 | GNUNET_STATISTICS_set (stats, gettext_noop ("# cache size"), cache_size, |
1506 | GNUNET_NO); | 1506 | GNUNET_NO); |
1507 | if (quota / (32 * 1024LL) > (1 << 31)) | 1507 | if (quota / (32 * 1024LL) > (1 << 31)) |
1508 | bf_size = (1 << 31); /* absolute limit: ~2 GB, beyond that BF just won't help anyway */ | 1508 | bf_size = (1 << 31); /* absolute limit: ~2 GB, beyond that BF just won't help anyway */ |
1509 | else | 1509 | else |
1510 | bf_size = quota / (32 * 1024LL); /* 8 bit per entry, 1 bit per 32 kb in DB */ | 1510 | bf_size = quota / (32 * 1024LL); /* 8 bit per entry, 1 bit per 32 kb in DB */ |
@@ -1610,7 +1610,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1610 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 1610 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
1611 | _("Rebuilding bloomfilter. Please be patient.\n")); | 1611 | _("Rebuilding bloomfilter. Please be patient.\n")); |
1612 | if (NULL != plugin->api->get_keys) | 1612 | if (NULL != plugin->api->get_keys) |
1613 | plugin->api->get_keys (plugin->api->cls, &add_key_to_bloomfilter, filter); | 1613 | plugin->api->get_keys (plugin->api->cls, &add_key_to_bloomfilter, filter); |
1614 | else | 1614 | else |
1615 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1615 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1616 | _("Plugin does not support get_keys function. Please fix!\n")); | 1616 | _("Plugin does not support get_keys function. Please fix!\n")); |