summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Handle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 124f866..210186d 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -758,8 +758,8 @@ void Handle::Flush() {
return;
if (z >= 10) {
- } else if (z) {
- gzflush(&z, Z_FULL_FLUSH);
+ } else if (zfile) {
+ gzflush(zile, Z_FULL_FLUSH);
} else {
#ifdef HAVE_FSYNC
fsync(h);