Changeset: 97142ae4b35b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=97142ae4b35b
Modified Files:
        common/stream/bz2_stream.c
Branch: makelibstreamgreatagain
Log Message:

Fix flush handling in bz2_stream


diffs (19 lines):

diff --git a/common/stream/bz2_stream.c b/common/stream/bz2_stream.c
--- a/common/stream/bz2_stream.c
+++ b/common/stream/bz2_stream.c
@@ -98,9 +98,14 @@ work(inner_state_t *inner_state, pump_ac
        switch (ret) {
                case BZ_OK:
                case BZ_RUN_OK:
+                       if (a == PUMP_NO_FLUSH)
+                               return PUMP_OK;
+                       else
+                               /* when flushing or finishing, done */
+                               return PUMP_END;
                case BZ_FLUSH_OK:
                case BZ_FINISH_OK:
-                       // if you think it's ok, I think it's ok
+                       /* flushing and finishing is not yet done */
                        return PUMP_OK;
                case BZ_STREAM_END:
                        inner_state->eof_reached = true;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to