Skip to content

Commit

Permalink
Merge pull request #3146 from AenBleidd/fix_db_purge_zlib
Browse files Browse the repository at this point in the history
db_purge: fix bugs in zlib support
  • Loading branch information
TheAspens authored May 14, 2019
2 parents 1d0d6f3 + 9ffaf16 commit 1f886b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sched/db_purge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ int archive_result_gz (DB_RESULT& result) {
fail("ERROR: writing result archive failed\n");
}

n = gzflush((gzFile)re_stream, Z_FULL_FLUSH);
n = gzflush((gzFile)re_stream, Z_SYNC_FLUSH);
if (n != Z_OK) {
fail("ERROR: writing result archive failed (flush)\n");
}
Expand Down Expand Up @@ -538,7 +538,7 @@ int archive_wu_gz (DB_WORKUNIT& wu) {
fail("ERROR: writing workunit archive failed\n");
}

n = gzflush((gzFile)re_stream,Z_FULL_FLUSH);
n = gzflush((gzFile)wu_stream,Z_SYNC_FLUSH);
if (n != Z_OK) {
fail("ERROR: writing workunit archive failed (flush)\n");
}
Expand All @@ -551,7 +551,7 @@ int archive_wu_gz (DB_WORKUNIT& wu) {
fail("ERROR: writing workunit index failed\n");
}

n = gzflush((gzFile)re_stream,Z_SYNC_FLUSH);
n = gzflush((gzFile)wu_index_stream,Z_SYNC_FLUSH);
if (n != Z_OK) {
fail("ERROR: writing workunit index failed (flush)\n");
}
Expand Down

0 comments on commit 1f886b4

Please sign in to comment.