Do not remove empty tag on startup
authorJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 28 Aug 2020 07:28:21 +0000 (09:28 +0200)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 28 Aug 2020 07:28:21 +0000 (09:28 +0200)
include/siri/version.h
src/siri/db/tags.c

index 912ebc22f375181c4353b2898319b868acc7d3e0..467e9bef2ccf547f731ac82bf20c26883919e568 100644 (file)
@@ -15,7 +15,7 @@
  * Note that debian alpha packages should use versions like this:
  *   2.0.34-0alpha0
  */
-#define SIRIDB_VERSION_PRE_RELEASE "-alpha-0"
+#define SIRIDB_VERSION_PRE_RELEASE "-alpha-1"
 
 #ifndef NDEBUG
 #define SIRIDB_VERSION_BUILD_RELEASE "+debug"
index cf0d1456f0c9bb4666d789b2caf9f1dc34ad9e36..0faa02e8a4743072b0d26035781b8f776e607a56 100644 (file)
@@ -402,14 +402,6 @@ static int TAGS_load(siridb_t * siridb)
            break;
         }
 
-        if (!tag->series->len)
-        {
-            log_warning("Removing tag '%s' since it has no series", tag->name);
-            tag->flags |= TAG_FLAG_CLEANUP;
-            siridb_tag_decref(tag);
-            continue;
-        }
-
         if (ct_add(siridb->tags->tags, tag->name, tag))
         {
             log_error("Cannot add tag to collection");
@@ -422,7 +414,6 @@ static int TAGS_load(siridb_t * siridb)
         {
             siridb->tags->next_id = tag->id + 1;
         }
-
     }
 
     while (total--)