fix: curio: fix incorrect null check for varchar column (#11881)

* err check empty string

* log skipped tasks
This commit is contained in:
LexLuthr
2024-04-15 19:27:31 -05:00
committed by GitHub
parent bc43bd6d69
commit 3ebb92a976
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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,