[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 04/05: avoid specifying useless DEFAULT values
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 04/05: avoid specifying useless DEFAULT values |
Date: |
Thu, 08 Mar 2018 16:43:11 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 174fbee08315672dae1e9dae6df75eeab24808ac
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Mar 8 16:27:57 2018 +0100
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))
{
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (800d91ce4 -> da76b1b40), gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 03/05: enable cache use by default, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 02/05: enforce query is primary key, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 01/05: fix off-by-one in BOX type processing, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 04/05: avoid specifying useless DEFAULT values,
gnunet <=
- [GNUnet-SVN] [gnunet] 05/05: SSL->TLS / X.509 in log messages and comments, remove unnecessary check, gnunet, 2018/03/08