diff options
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/datacache.c | 6 | ||||
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c index a1869a8bd..92cc40b53 100644 --- a/src/datacache/datacache.c +++ b/src/datacache/datacache.c | |||
@@ -185,9 +185,9 @@ GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
185 | } | 185 | } |
186 | if (NULL == ret->filter) | 186 | if (NULL == ret->filter) |
187 | { | 187 | { |
188 | ret->filter = GNUNET_CONTAINER_bloomfilter_init (NULL, | 188 | ret->filter = GNUNET_CONTAINER_bloomfilter_init (NULL, |
189 | bf_size, | 189 | bf_size, |
190 | 5); /* approx. 3% false positives at max use */ | 190 | 5); /* approx. 3% false positives at max use */ |
191 | } | 191 | } |
192 | } | 192 | } |
193 | ret->stats = GNUNET_STATISTICS_create ("datacache", cfg); | 193 | ret->stats = GNUNET_STATISTICS_create ("datacache", cfg); |
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 5c497cdf8..2fe6498a5 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c | |||
@@ -68,11 +68,11 @@ init_connection (struct Plugin *plugin) | |||
68 | { | 68 | { |
69 | struct GNUNET_PQ_ExecuteStatement es[] = { | 69 | struct GNUNET_PQ_ExecuteStatement es[] = { |
70 | GNUNET_PQ_make_execute ("CREATE TEMPORARY TABLE IF NOT EXISTS gn090dc (" | 70 | GNUNET_PQ_make_execute ("CREATE TEMPORARY TABLE IF NOT EXISTS gn090dc (" |
71 | " type INTEGER NOT NULL DEFAULT 0," | 71 | " type INTEGER NOT NULL," |
72 | " discard_time BIGINT NOT NULL DEFAULT 0," | 72 | " discard_time BIGINT NOT NULL," |
73 | " key BYTEA NOT NULL DEFAULT ''," | 73 | " key BYTEA NOT NULL," |
74 | " value BYTEA NOT NULL DEFAULT ''," | 74 | " value BYTEA NOT NULL," |
75 | " path BYTEA DEFAULT '')" | 75 | " path BYTEA DEFAULT NULL)" |
76 | "WITH OIDS"), | 76 | "WITH OIDS"), |
77 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_key ON gn090dc (key)"), | 77 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_key ON gn090dc (key)"), |
78 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_dt ON gn090dc (discard_time)"), | 78 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_dt ON gn090dc (discard_time)"), |