Fixed a logic error: if the amount requested happened to be equal to the size of the rest of the current block, the next read would return 0 indicating a flush which hadn't happened.
Fixed a logic error: if the amount requested happened to be equal to
the size of the rest of the current block, the next read would return
0 indicating a flush which hadn't happened.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb