Skip to content
Snippets Groups Projects
Commit d8d4ad0a authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

gh-1649: regression caused by the partial fix for gh-846

* the bug with iobuf recycling has always been in 1.6,
  and is fixed in 1.7, but got more exposure with the patch
  for gh-846. "Idle" state of iobuf was calculated incorrectly.
parent 483c68d8
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ iobuf_reset_mt(struct iobuf *iobuf);
static inline bool
iobuf_is_idle(struct iobuf *iobuf)
{
return ibuf_used(&iobuf->in) == 0 && obuf_size(&iobuf->out) == 0;
return ibuf_used(&iobuf->in) == 0 && obuf_used(&iobuf->out) == 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment