diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-17 23:23:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-17 23:23:41 +0000 |
commit | 36d3cd5a59063bfc35875fc0a050e869f9da7349 (patch) | |
tree | 28603797ea371e7131c44e4c25cc06d44f80e9de /src/datastore | |
parent | 2d4d4927f575dc9e0493cd2c1fe5d4a3b0eaf20d (diff) | |
download | gnunet-36d3cd5a59063bfc35875fc0a050e869f9da7349.tar.gz gnunet-36d3cd5a59063bfc35875fc0a050e869f9da7349.zip |
print
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index e4a41c899..eccc27343 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -285,11 +285,11 @@ database_setup (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
285 | if ( (sqlite3_step (stmt) == SQLITE_DONE) && | 285 | if ( (sqlite3_step (stmt) == SQLITE_DONE) && |
286 | (sqlite3_exec (plugin->dbh, | 286 | (sqlite3_exec (plugin->dbh, |
287 | "CREATE TABLE gn080 (" | 287 | "CREATE TABLE gn080 (" |
288 | " size INTEGER NOT NULL DEFAULT 0," | 288 | " size INT4 NOT NULL DEFAULT 0," |
289 | " type INTEGER NOT NULL DEFAULT 0," | 289 | " type INT4 NOT NULL DEFAULT 0," |
290 | " prio INTEGER NOT NULL DEFAULT 0," | 290 | " prio INT4 NOT NULL DEFAULT 0," |
291 | " anonLevel INTEGER NOT NULL DEFAULT 0," | 291 | " anonLevel INT4 NOT NULL DEFAULT 0," |
292 | " expire INTEGER NOT NULL DEFAULT 0," | 292 | " expire INT8 NOT NULL DEFAULT 0," |
293 | " hash TEXT NOT NULL DEFAULT ''," | 293 | " hash TEXT NOT NULL DEFAULT ''," |
294 | " vhash TEXT NOT NULL DEFAULT ''," | 294 | " vhash TEXT NOT NULL DEFAULT ''," |
295 | " value BLOB NOT NULL DEFAULT '')", NULL, NULL, | 295 | " value BLOB NOT NULL DEFAULT '')", NULL, NULL, |
@@ -681,11 +681,12 @@ sqlite_plugin_put (void *cls, | |||
681 | #if DEBUG_SQLITE | 681 | #if DEBUG_SQLITE |
682 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 682 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, |
683 | "sqlite", | 683 | "sqlite", |
684 | "Storing in database block with type %u/key `%s'/priority %u/expiration %llu.\n", | 684 | "Storing in database block with type %u/key `%s'/priority %u/expiration %llu (%lld).\n", |
685 | type, | 685 | type, |
686 | GNUNET_h2s(key), | 686 | GNUNET_h2s(key), |
687 | priority, | 687 | priority, |
688 | GNUNET_TIME_absolute_get_remaining (expiration).value); | 688 | (unsigned long long) GNUNET_TIME_absolute_get_remaining (expiration).value, |
689 | (long long) expiration.value); | ||
689 | #endif | 690 | #endif |
690 | GNUNET_CRYPTO_hash (data, size, &vhash); | 691 | GNUNET_CRYPTO_hash (data, size, &vhash); |
691 | stmt = plugin->insertContent; | 692 | stmt = plugin->insertContent; |