flush move log when cold collection is done
This commit is contained in:
		
							parent
							
								
									fc247e4223
								
							
						
					
					
						commit
						fce7b8dc9b
					
				| @ -43,6 +43,14 @@ func (d *debugLog) LogMove(curTs *types.TipSet, cid cid.Cid, writeEpoch abi.Chai | ||||
| 	// TODO
 | ||||
| } | ||||
| 
 | ||||
| func (d *debugLog) FlushMove() { | ||||
| 	if d == nil { | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	// TODO
 | ||||
| } | ||||
| 
 | ||||
| func (d *debugLog) Close() error { | ||||
| 	if d == nil { | ||||
| 		return nil | ||||
|  | ||||
| @ -806,6 +806,8 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error { | ||||
| 		return nil | ||||
| 	}) | ||||
| 
 | ||||
| 	s.debug.FlushMove() | ||||
| 
 | ||||
| 	if err != nil { | ||||
| 		return xerrors.Errorf("error collecting cold objects: %w", err) | ||||
| 	} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user