Skip to content

Conversation

@CatherineF-dev
Copy link
Collaborator

@CatherineF-dev CatherineF-dev commented Aug 4, 2021

When filenum >= 1000000, fileNameRegexp couldn't match that filename.

fmt.Println(fmt.Sprintf( "%s.diskqueue.%06d.dat", "abc", 100000000)) = abc.diskqueue.100000000.dat

@CatherineF-dev CatherineF-dev requested a review from kev1n80 August 4, 2021 15:53
Copy link
Owner

@kev1n80 kev1n80 left a comment

Choose a reason for hiding this comment

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

Nice catch and brilliant solution!

@CatherineF-dev CatherineF-dev merged commit bb13b3d into kev1n80:master Aug 4, 2021
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.

2 participants