From d9e2eb19dfef24c8b6af396b2b61b2dab4cf740d Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 27 Oct 2014 22:08:24 -0400 Subject: [PATCH] 3706: Do not leave zero-length file segment at end of stream after finish_current_file(). --- sdk/python/arvados/collection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py index fcb30c5497..1b712ea171 100644 --- a/sdk/python/arvados/collection.py +++ b/sdk/python/arvados/collection.py @@ -392,6 +392,7 @@ class CollectionWriter(CollectionBase): self._current_stream_length - self._current_file_pos, self._current_file_name]) self._current_file_pos = self._current_stream_length + self._current_file_name = None def start_new_stream(self, newstreamname='.'): self.finish_current_stream() -- 2.39.5