From 174fbee08315672dae1e9dae6df75eeab24808ac Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 8 Mar 2018 16:27:57 +0100 Subject: [PATCH] avoid specifying useless DEFAULT values --- src/namestore/gnunet-service-namestore.c | 2 ++ src/namestore/plugin_namestore_sqlite.c | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index dea13b982..f967881ec 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -260,6 +260,8 @@ cleanup_task (void *cls) "Stopping namestore service\n"); while (NULL != (cop = cop_head)) { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Aborting incomplete namecache operation\n"); GNUNET_NAMECACHE_cancel (cop->qe); GNUNET_CONTAINER_DLL_remove (cop_head, cop_tail, diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index eb2378ed4..168c52c11 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c @@ -266,12 +266,12 @@ database_setup (struct Plugin *plugin) (sqlite3_exec (plugin->dbh, "CREATE TABLE ns097records (" - " zone_private_key BLOB NOT NULL DEFAULT ''," + " zone_private_key BLOB NOT NULL," " pkey BLOB," - " rvalue INT8 NOT NULL DEFAULT ''," - " record_count INT NOT NULL DEFAULT 0," - " record_data BLOB NOT NULL DEFAULT ''," - " label TEXT NOT NULL DEFAULT ''" + " rvalue INT8 NOT NULL," + " record_count INT NOT NULL," + " record_data BLOB NOT NULL," + " label TEXT NOT NULL" ")", NULL, NULL, NULL) != SQLITE_OK)) { -- 2.25.1