mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-14 01:43:44 +08:00
update
Signed-off-by: wozulong <>
This commit is contained in:
@@ -260,11 +260,11 @@ func DeleteOldLog(ctx context.Context, targetTimestamp int64, limit int) (int64,
|
||||
return total, result.Error
|
||||
}
|
||||
|
||||
if 0 == result.RowsAffected {
|
||||
total += result.RowsAffected
|
||||
|
||||
if result.RowsAffected < int64(limit) {
|
||||
break
|
||||
}
|
||||
|
||||
total += result.RowsAffected
|
||||
}
|
||||
|
||||
return total, nil
|
||||
|
||||
Reference in New Issue
Block a user