Avoid add last_compact_offset when is zero
This commit is contained in:
parent
6cde922505
commit
07d6a4cdf6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue