Browse Source

fmt

pull/7396/head
chrislu 2 months ago
parent
commit
97d1638342
  1. 1
      weed/storage/erasure_coding/ec_context.go
  2. 2
      weed/storage/erasure_coding/ec_volume.go

1
weed/storage/erasure_coding/ec_context.go

@ -41,4 +41,3 @@ func (ctx *ECContext) ToExt(shardIndex int) string {
func (ctx *ECContext) String() string {
return fmt.Sprintf("%d+%d (total: %d)", ctx.DataShards, ctx.ParityShards, ctx.TotalShards)
}

2
weed/storage/erasure_coding/ec_volume.go

@ -41,7 +41,7 @@ type EcVolume struct {
ecjFileAccessLock sync.Mutex
diskType types.DiskType
datFileSize int64
ExpireAtSec uint64 //ec volume destroy time, calculated from the ec volume was created
ExpireAtSec uint64 //ec volume destroy time, calculated from the ec volume was created
ECContext *ECContext // EC encoding parameters
}

Loading…
Cancel
Save