Skip to content

Commit c5ef4b8

Browse files
committed
fix(cdn): select item inside at least n storage_unit
1 parent 7f439a6 commit c5ef4b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/cdn/storage/dao.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func LoadAllSynchronizedItemIDs(db gorp.SqlExecutor, bufferUnitID string, maxSto
149149
FROM storage_unit_item
150150
WHERE item_id = ANY (select item_id from inBuffer)
151151
GROUP BY item_id
152-
HAVING COUNT(unit_id) = $1
152+
HAVING COUNT(unit_id) >= $1
153153
`
154154
if _, err := db.Select(&itemIDs, query, maxStorageCount, bufferUnitID); err != nil {
155155
return nil, sdk.WrapError(err, "unable to get item ids")

0 commit comments

Comments
 (0)