Remove unnecessary calls to cleanup_and_return()
prune_db() and migrate_db() already call unlock(), calling cleanup_and_return() only added a second (redundant) call to unlock()
This commit is contained in:
parent
b97508b217
commit
8c1c5c851d
@ -437,7 +437,7 @@ sub convert_db {
|
|||||||
}
|
}
|
||||||
$self->db->unlock;
|
$self->db->unlock;
|
||||||
$self->log(LOGINFO, "converted $converted of $count DB entries");
|
$self->log(LOGINFO, "converted $converted of $count DB entries");
|
||||||
return $self->cleanup_and_return(DECLINED);
|
return DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub prune_db {
|
sub prune_db {
|
||||||
@ -456,7 +456,7 @@ sub prune_db {
|
|||||||
}
|
}
|
||||||
$self->db->unlock;
|
$self->db->unlock;
|
||||||
$self->log(LOGINFO, "pruned $pruned of $count DB entries");
|
$self->log(LOGINFO, "pruned $pruned of $count DB entries");
|
||||||
return $self->cleanup_and_return(DECLINED);
|
return DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub exclude {
|
sub exclude {
|
||||||
|
Loading…
Reference in New Issue
Block a user