satellite/metabase: add missing error check

Change-Id: I6891f0647cb8e4a8dd6534eaa3588bbe76e2721d
This commit is contained in:
Michal Niewrzal 2023-01-24 11:53:14 +01:00 committed by Storj Robot
parent 805fcdf341
commit b5c5c62d7b

View File

@ -130,6 +130,9 @@ func (db *DB) deleteBucketObjectBatchWithCopyFeatureEnabled(ctx context.Context,
return db.promoteNewAncestors(ctx, tx, objects)
})
if err != nil {
return 0, err
}
deletedObjectCount = int64(len(objects))