Skip to content

Commit

Permalink
Revert "Fix missed table name on iterate lfs meta objects" (#24764)
Browse files Browse the repository at this point in the history
This reverts commit 3364092.

It was accidentally pushed to `main` without a review.
  • Loading branch information
yardenshoham authored May 17, 2023
1 parent 29096d8 commit c839d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/git/lfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func IterateLFSMetaObjectsForRepo(ctx context.Context, repoID int64, f func(cont

for {
beans := make([]*CountLFSMetaObject, 0, batchSize)
sess := engine.Table("lfs_meta_object").Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
sess := engine.Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
Join("INNER", "`lfs_meta_object` AS l1", "`lfs_meta_object`.oid = `l1`.oid").
Where("`lfs_meta_object`.repository_id = ?", repoID)
if !opts.OlderThan.IsZero() {
Expand Down

0 comments on commit c839d6f

Please sign in to comment.