Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Skip copy WAL file to archive if already exists #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Copy link
Collaborator

@CherkashinSergey CherkashinSergey commented Oct 17, 2018

Если WAL файл уже лежит в архиве и его чексума совпадает с уже имеющимся, то файл не копируется, а вызвавшему процессу возвращается 0.

Copy link
Collaborator Author

@CherkashinSergey CherkashinSergey left a comment

Choose a reason for hiding this comment

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

Думаю, имеет смысл дополнить tests.archive.ArchiveTest.test_arhive_push_file_exists

Copy link
Collaborator Author

Можно было бы вынести вычисление чексуммы сжатого файла в отдельную функцию, но в таком случае её придётся адаптировать для возможного переиспользования.

Copy link
Contributor

gsmolk commented Nov 16, 2018

merged via gitlab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /