aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/perf_datacache.c2
-rw-r--r--src/datacache/perf_datacache_data_sqlite.conf2
-rw-r--r--src/datacache/plugin_datacache_sqlite.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c
index fd3e23b92..7d1825447 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -31,7 +31,7 @@
31 31
32#define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0) 32#define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0)
33 33
34#define ITERATIONS 10000 34#define ITERATIONS 50000
35 35
36static int ok; 36static int ok;
37 37
diff --git a/src/datacache/perf_datacache_data_sqlite.conf b/src/datacache/perf_datacache_data_sqlite.conf
index b81034f5f..aee6f7d0d 100644
--- a/src/datacache/perf_datacache_data_sqlite.conf
+++ b/src/datacache/perf_datacache_data_sqlite.conf
@@ -1,4 +1,4 @@
1[perfcache] 1[perfcache]
2QUOTA = 500000 2QUOTA = 2500000
3DATABASE = sqlite 3DATABASE = sqlite
4 4
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index 4bb61dcd1..2b36e5b60 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -400,6 +400,7 @@ libgnunet_plugin_datacache_sqlite_init (void *cls)
400 " key BLOB NOT NULL DEFAULT ''," 400 " key BLOB NOT NULL DEFAULT '',"
401 " value BLOB NOT NULL DEFAULT '')"); 401 " value BLOB NOT NULL DEFAULT '')");
402 SQLITE3_EXEC (dbh, "CREATE INDEX idx_hashidx ON ds090 (key,type,expire)"); 402 SQLITE3_EXEC (dbh, "CREATE INDEX idx_hashidx ON ds090 (key,type,expire)");
403 SQLITE3_EXEC (dbh, "CREATE INDEX idx_expire ON ds090 (expire)");
403 plugin = GNUNET_malloc (sizeof (struct Plugin)); 404 plugin = GNUNET_malloc (sizeof (struct Plugin));
404 plugin->env = env; 405 plugin->env = env;
405 plugin->dbh = dbh; 406 plugin->dbh = dbh;