From f846bc10e7f36e7c6f7c7888544af2a0932a8001 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 12 May 2013 04:17:09 +0200 Subject: Fixing gzflush... --- lib/Handle.cc | 4 ++-- 1 file 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); -- cgit v1.2.3