Skip to content

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

CherkashinSergey
Copy link
Collaborator

Если 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

@CherkashinSergey
Copy link
Collaborator Author

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

@gsmolk
Copy link
Contributor

gsmolk commented Nov 16, 2018

merged via gitlab

@gsmolk gsmolk closed this Nov 16, 2018
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