From: Jeroen van der Heijden Date: Fri, 28 Aug 2020 07:28:21 +0000 (+0200) Subject: Do not remove empty tag on startup X-Git-Tag: archive/raspbian/2.0.44-1+rpi1~1^2~3^2~3^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5ad8205ca8e5a0189e90948ff37bb1dd54c1480b;p=siridb-server.git Do not remove empty tag on startup --- diff --git a/include/siri/version.h b/include/siri/version.h index 912ebc22..467e9bef 100644 --- a/include/siri/version.h +++ b/include/siri/version.h @@ -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" diff --git a/src/siri/db/tags.c b/src/siri/db/tags.c index cf0d1456..0faa02e8 100644 --- a/src/siri/db/tags.c +++ b/src/siri/db/tags.c @@ -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--)