Skip to content

Commit

Permalink
Merge pull request #11463 from filecoin-project/fixSectorFiletype
Browse files Browse the repository at this point in the history
Fix sector filetype
  • Loading branch information
magik6k authored Nov 28, 2023
2 parents 368ad8d + 81e59b7 commit 740a706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/paths/db_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (dbi *DBIndex) StorageList(ctx context.Context) (map[storiface.ID][]storifa
StorageId string
MinerId sql.NullInt64
SectorNum sql.NullInt64
SectorFiletype sql.NullInt32
SectorFiletype sql.NullInt32 `db:"sector_filetype"`
IsPrimary sql.NullBool
}

Expand Down Expand Up @@ -742,7 +742,7 @@ func (dbi *DBIndex) lock(ctx context.Context, sector abi.SectorID, read storifac
}

var rows []struct {
SectorFileType storiface.SectorFileType
SectorFileType storiface.SectorFileType `db:"sector_filetype"`
ReadTs sql.NullTime
ReadRefs int
WriteTs sql.NullTime
Expand Down Expand Up @@ -946,7 +946,7 @@ func (dbi *DBIndex) StorageGetLocks(ctx context.Context) (storiface.SectorLocks,
var rows []struct {
MinerId uint64
SectorNum uint64
SectorFileType int
SectorFileType int `db:"sector_filetype"`
ReadTs sql.NullTime
ReadRefs int
WriteTs sql.NullTime
Expand Down

0 comments on commit 740a706

Please sign in to comment.