Avoid add last_compact_offset when is zero

This commit is contained in:
felix.suarez 2023-11-30 09:19:50 -06:00
parent 6cde922505
commit 07d6a4cdf6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}