Skip to content

Commit 1bad05d

Browse files
GiteaBotlunny
andauthored
Fix missed table name on iterate lfs meta objects (#24768) (#24774)
Backport #24768 by @lunny Fix #24763 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 57f520e commit 1bad05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/git/lfs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func IterateLFSMetaObjectsForRepo(ctx context.Context, repoID int64, f func(cont
390390

391391
for {
392392
beans := make([]*CountLFSMetaObject, 0, batchSize)
393-
sess := engine.Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
393+
sess := engine.Table("lfs_meta_object").Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
394394
Join("INNER", "`lfs_meta_object` AS l1", "`lfs_meta_object`.oid = `l1`.oid").
395395
Where("`lfs_meta_object`.repository_id = ?", repoID)
396396
if !opts.OlderThan.IsZero() {

0 commit comments

Comments
 (0)