Commit bd983f0b authored by Nils Goroll's avatar Nils Goroll

because we don't flush in _fini, we need to always flush...

parent 98962a73
......@@ -171,6 +171,15 @@ vped_gzgz_init(struct req *req, void **priv)
return (0);
}
/*
* we removed a NULL VDP_FLUSH from _fini because in our code it goes to the
* _toparent vdp on the same request, rather than one request up as in the
* original code.
*
* thus our VDP_bytes all have to flush
*
* XXX revisit maybe...
*/
static int v_matchproto_(vdp_bytes_f)
vped_gzgz_bytes(struct req *req, enum vdp_action act, void **priv,
const void *ptr, ssize_t len)
......@@ -211,7 +220,7 @@ vped_gzgz_bytes(struct req *req, enum vdp_action act, void **priv,
/* Remove the "LAST" bit */
foo->dbits[0] = *pp;
foo->dbits[0] &= ~(1U << (foo->last & 7));
if (VDP_bytes(req, act, foo->dbits, 1))
if (VDP_bytes(req, VDP_FLUSH, foo->dbits, 1))
return (-1);
foo->ll++;
len--;
......@@ -285,7 +294,7 @@ vped_gzgz_bytes(struct req *req, enum vdp_action act, void **priv,
default:
WRONG("compiler must be broken");
}
if (VDP_bytes(req, act, foo->dbits + 1, foo->lpad))
if (VDP_bytes(req, VDP_FLUSH, foo->dbits + 1, foo->lpad))
return (-1);
}
if (len > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment