wait for the sync gap time befor starting the purge
This commit is contained in:
parent
11ae85645b
commit
fd07ca87ce
@ -660,6 +660,10 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait for the head to catch up so that all messages are protected
|
||||||
|
log.Infof("waiting %s for sync", SyncGapTime)
|
||||||
|
time.Sleep(SyncGapTime)
|
||||||
|
|
||||||
checkpoint, err := NewCheckpoint(s.checkpointPath())
|
checkpoint, err := NewCheckpoint(s.checkpointPath())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("error creating checkpoint: %w", err)
|
return xerrors.Errorf("error creating checkpoint: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user