mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
db batch may not be a global resource
This way db usage is safe.
This commit is contained in:
committed by
Lorenzo Bolla
parent
f7f42a9cd8
commit
1c7c07ace7
@@ -188,9 +188,6 @@ func aptlyDbCleanup(cmd *commander.Command, args []string) error {
|
||||
err = toDelete.ForEach(func(ref []byte) error {
|
||||
return collectionFactory.PackageCollection().DeleteByKey(ref, batch)
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = batch.Write()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user