From 07d6a4cdf640fb12e0590bfe70f2d67ed9f884af Mon Sep 17 00:00:00 2001 From: "felix.suarez" Date: Thu, 30 Nov 2023 09:19:50 -0600 Subject: [PATCH] Avoid add last_compact_offset when is zero --- pandora_server/util/pandora_db.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 396f4457f9..c9dc961e06 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -442,7 +442,7 @@ sub pandora_compactdb { my $last_compact_offset = pandora_get_config_value($dbh, "last_compact_offset"); - unless ($last_compact_offset) { + if ($last_compact_offset eq "") { db_do($dbh, "INSERT INTO tconfig (token, value) VALUES ('last_compact_offset', '0')"); $last_compact_offset = 0; }