Skip to content

Commit

Permalink
Update log message and comment in POSIX (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk authored Dec 9, 2024
1 parent 20c25b1 commit 225c6e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/posix/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (s *Storage) sequenceBatch(ctx context.Context, entries []*tessera.Entry) e
return nil
}

// doIntegrate handles integrating new entries into the log, and updating the checkpoint.
// doIntegrate handles integrating new entries into the log, and updating the tree state.
func (s *Storage) doIntegrate(ctx context.Context, fromSeq uint64, entries []storage.SequencedEntry) error {
getTiles := func(ctx context.Context, tileIDs []storage.TileID, treeSize uint64) ([]*api.HashTile, error) {
n, err := s.readTiles(ctx, tileIDs, treeSize)
Expand All @@ -281,9 +281,9 @@ func (s *Storage) doIntegrate(ctx context.Context, fromSeq uint64, entries []sto
}
}

klog.Infof("New CP: %d, %x", newSize, newRoot)
klog.Infof("New tree state: %d, %x", newSize, newRoot)
if err := s.writeTreeState(newSize, newRoot); err != nil {
return fmt.Errorf("failed to write new checkpoint: %v", err)
return fmt.Errorf("failed to write new tree state: %v", err)
}

return nil
Expand Down

0 comments on commit 225c6e0

Please sign in to comment.