Skip to content

Commit

Permalink
updated for PR #3146
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 15, 2019
1 parent c6ccccc commit a442cc8
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 @@ -506,7 +506,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 @@ -540,7 +540,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 @@ -553,7 +553,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 a442cc8

Please sign in to comment.