From 225c6e010280e115723055e8149bb55882f1691e Mon Sep 17 00:00:00 2001 From: Roger Ng Date: Mon, 9 Dec 2024 18:12:26 +0000 Subject: [PATCH] Update log message and comment in POSIX (#408) --- storage/posix/files.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/posix/files.go b/storage/posix/files.go index e2981ebb..c9c01295 100644 --- a/storage/posix/files.go +++ b/storage/posix/files.go @@ -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) @@ -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