Skip to content
New issue

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

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

Already on GitHub? # to your account

db_purge: fix bugs in zlib support #3146

Merged
merged 1 commit into from
May 14, 2019

Conversation

AenBleidd
Copy link
Member

There are two bugs in db_purge zlib support code:

  1. Wrong archive streams flushed (copy-paste programming...)
  2. Z_FULL_FLUSH must not be used as it clears compression dictionary, this ruins compression. Use Z_SYNC_FLUSH instead.

This fixes #3145

Signed-off-by: Vitalii Koshura lestat.de.lionkur@gmail.com

Fixes #

Description of the Change

Alternate Designs

Release Notes

There are two bugs in db_purge zlib support code:
1. Wrong archive streams flushed (copy-paste programming...)
2. `Z_FULL_FLUSH` must not be used as it clears compression dictionary, this ruins compression. Use `Z_SYNC_FLUSH` instead.

This fixes BOINC#3145

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@codecov
Copy link

codecov bot commented May 14, 2019

Codecov Report

Merging #3146 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3146   +/-   ##
======================================
  Coverage    6.04%   6.04%           
======================================
  Files          36      36           
  Lines        5967    5967           
======================================
  Hits          361     361           
  Misses       5606    5606

1 similar comment
@codecov
Copy link

codecov bot commented May 14, 2019

Codecov Report

Merging #3146 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3146   +/-   ##
======================================
  Coverage    6.04%   6.04%           
======================================
  Files          36      36           
  Lines        5967    5967           
======================================
  Hits          361     361           
  Misses       5606    5606

@TheAspens
Copy link
Member

Looks good - thanks for the fix.

@TheAspens TheAspens merged commit 1f886b4 into BOINC:master May 14, 2019
@AenBleidd AenBleidd deleted the fix_db_purge_zlib branch May 15, 2019 12:28
lfield pushed a commit that referenced this pull request May 15, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

db_purge bugs in zlib support
3 participants