Skip to content

[Checkpoint v6] Refactor file close error#3368

Merged
zhangchiqing merged 3 commits intofeature-checkpoint-v6from
leo/checkpoint-v6-refactor-file-close-error
Oct 12, 2022
Merged

[Checkpoint v6] Refactor file close error#3368
zhangchiqing merged 3 commits intofeature-checkpoint-v6from
leo/checkpoint-v6-refactor-file-close-error

Conversation

@zhangchiqing
Copy link
Member

No description provided.

@zhangchiqing zhangchiqing changed the base branch from master to feature-checkpoint-v6 October 11, 2022 22:42
@zhangchiqing zhangchiqing force-pushed the leo/checkpoint-v6-refactor-file-close-error branch from a1d91d5 to f04252e Compare October 11, 2022 22:53
@zhangchiqing zhangchiqing marked this pull request as ready for review October 11, 2022 22:53
func OpenAndReadCheckpointV6(dir string, fileName string, logger *zerolog.Logger) ([]*trie.MTrie, error) {
func OpenAndReadCheckpointV6(dir string, fileName string, logger *zerolog.Logger) (
tries []*trie.MTrie,
errToReturn error,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are thinking why not just err, then please read the comments on closeAndMergeError

// any error returned are exceptions
func readCheckpointHeader(filepath string, logger *zerolog.Logger) ([]uint32, uint32, error) {
func readCheckpointHeader(filepath string, logger *zerolog.Logger) (
checksumsOfSubtries []uint32,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intended to have this verbose name, it is to ensure it's not being used and only for definition.

@zhangchiqing zhangchiqing merged commit 7ce9de2 into feature-checkpoint-v6 Oct 12, 2022
@zhangchiqing zhangchiqing deleted the leo/checkpoint-v6-refactor-file-close-error branch October 12, 2022 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant