Skip to content

Commit

Permalink
err check empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Apr 15, 2024
1 parent 50ed73d commit c240edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/paths/db_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func (dbi *DBIndex) StorageBestAlloc(ctx context.Context, allocate storiface.Sec
FROM storage_path
WHERE available >= $1
and NOW()-($2 * INTERVAL '1 second') < last_heartbeat
and heartbeat_err is null
and heartbeat_err = ''
and (($3 and can_seal = TRUE) or ($4 and can_store = TRUE))
order by (available::numeric * weight) desc`,
spaceReq,
Expand Down

0 comments on commit c240edf

Please sign in to comment.