avoid specifying useless DEFAULT values
authorChristian Grothoff <christian@grothoff.org>
Thu, 8 Mar 2018 15:27:57 +0000 (16:27 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 8 Mar 2018 15:43:05 +0000 (16:43 +0100)
src/namestore/gnunet-service-namestore.c
src/namestore/plugin_namestore_sqlite.c

index dea13b982114f70eeeb9382553f3e6e98dcd040a..f967881ec5f9f1a484f7805c668d2aece50f3ec6 100644 (file)
@@ -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,
index eb2378ed4ab5cc635d73f20d89d9c325721f110d..168c52c119793e4b5537a2eb5dc19a87a6209724 100644 (file)
@@ -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))
   {