satisfy the spellchecker that masquarades as a linter
This commit is contained in:
parent
e54c8dac56
commit
c905b6f0c1
@ -50,7 +50,7 @@ var (
|
|||||||
// set this to true if you want to track origin stack traces in the write log
|
// set this to true if you want to track origin stack traces in the write log
|
||||||
enableDebugLogWriteTraces = false
|
enableDebugLogWriteTraces = false
|
||||||
|
|
||||||
// upgradeBoundary is the boundary before and after an upgrade where we supress compaction
|
// upgradeBoundary is the boundary before and after an upgrade where we suppress compaction
|
||||||
upgradeBoundary = build.Finality
|
upgradeBoundary = build.Finality
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ func (s *SplitStore) HeadChange(_, apply []*types.TipSet) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if s.isNearUpgrade(epoch) {
|
if s.isNearUpgrade(epoch) {
|
||||||
// we are near an upgrade epoch, supress compaction
|
// we are near an upgrade epoch, suppress compaction
|
||||||
atomic.StoreInt32(&s.compacting, 0)
|
atomic.StoreInt32(&s.compacting, 0)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ func TestSplitStoreCompactionWithBadger(t *testing.T) {
|
|||||||
testSplitStore(t, &Config{MarkSetType: "badger"})
|
testSplitStore(t, &Config{MarkSetType: "badger"})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSplitStoreSupressCompactionNearUpgrade(t *testing.T) {
|
func TestSplitStoreSuppressCompactionNearUpgrade(t *testing.T) {
|
||||||
chain := &mockChain{t: t}
|
chain := &mockChain{t: t}
|
||||||
|
|
||||||
// the myriads of stores
|
// the myriads of stores
|
||||||
@ -264,7 +264,7 @@ func TestSplitStoreSupressCompactionNearUpgrade(t *testing.T) {
|
|||||||
}
|
}
|
||||||
defer ss.Close() //nolint
|
defer ss.Close() //nolint
|
||||||
|
|
||||||
// create an upgrade schedule that will supress compaction during the test
|
// create an upgrade schedule that will suppress compaction during the test
|
||||||
upgradeBoundary = 0
|
upgradeBoundary = 0
|
||||||
upgrade := stmgr.Upgrade{
|
upgrade := stmgr.Upgrade{
|
||||||
Height: 10,
|
Height: 10,
|
||||||
|
Loading…
Reference in New Issue
Block a user