fix a coding error in truncating sector log
This commit is contained in:
parent
65b921c62c
commit
7db5e8061d
2
extern/storage-sealing/fsm.go
vendored
2
extern/storage-sealing/fsm.go
vendored
@ -196,7 +196,7 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta
|
|||||||
Kind: fmt.Sprintf("truncate"),
|
Kind: fmt.Sprintf("truncate"),
|
||||||
}
|
}
|
||||||
|
|
||||||
state.Log = append(state.Log[:2000], state.Log[:6000]...)
|
state.Log = append(state.Log[:2000], state.Log[6000:]...)
|
||||||
}
|
}
|
||||||
|
|
||||||
state.Log = append(state.Log, l)
|
state.Log = append(state.Log, l)
|
||||||
|
Loading…
Reference in New Issue
Block a user