summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-12-12 09:07:20 -0800
committerPixel <pixel@nobis-crew.org>2011-12-12 09:07:20 -0800
commit73e17feeb7231ac92fa69fa0272377855ba7994b (patch)
treefa8fe1b61d2fe811ba27b599e7e0e12b6bed0343 /src
parentb48f816aab0f343bc30c5ce36d5fff6b1e7f0d8d (diff)
Switching these write in ZHandle to forceWrites.
Diffstat (limited to 'src')
-rw-r--r--src/ZHandle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ZHandle.cc b/src/ZHandle.cc
index fd78b53..964f56d 100644
--- a/src/ZHandle.cc
+++ b/src/ZHandle.cc
@@ -111,7 +111,7 @@ ssize_t Balau::ZStream::write(const void * buf, size_t count) throw (GeneralExce
Task::yield(NULL);
size_t compressed = BLOCK_SIZE - m_zout.avail_out;
if (compressed) {
- size_t w = m_h->write(obuf, compressed);
+ size_t w = m_h->forceWrite(obuf, compressed);
if (w <= 0)
return wroteTotal;
}
@@ -133,7 +133,7 @@ void Balau::ZStream::doFlush(bool finish) {
EAssert((r == Z_OK) || ((r == Z_STREAM_END) && finish), "deflate() didn't return Z_OK or Z_STREAM_END, but %i (finish = %s)", r, finish ? "true" : "false");
size_t compressed = BLOCK_SIZE - m_zout.avail_out;
if (compressed) {
- size_t w = m_h->write(buf, compressed);
+ size_t w = m_h->forceWrite(buf, compressed);
if (w <= 0)
return;
}