v1.27.0-a #10

Closed
jonathanface wants to merge 473 commits from v1.27.0-a into master
Showing only changes of commit 4808b49090 - Show all commits

View File

@ -32,6 +32,8 @@ func AllocateSectorNumbers(ctx context.Context, a AllocAPI, db *harmonydb.DB, ma
var res []abi.SectorNumber var res []abi.SectorNumber
comm, err := db.BeginTransaction(ctx, func(tx *harmonydb.Tx) (commit bool, err error) { comm, err := db.BeginTransaction(ctx, func(tx *harmonydb.Tx) (commit bool, err error) {
res = nil // reset result in case of retry
// query from db, if exists unmarsal to bitfield // query from db, if exists unmarsal to bitfield
var dbAllocated bitfield.BitField var dbAllocated bitfield.BitField
var rawJson []byte var rawJson []byte