X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b0e6c00576257cef24cfd0599073f58904a2b85c..2a469c4874895b05ee137e2382fd882680b3feb2:/sdk/python/arvados/arvfile.py diff --git a/sdk/python/arvados/arvfile.py b/sdk/python/arvados/arvfile.py index 9a86a8d4df..edeb910570 100644 --- a/sdk/python/arvados/arvfile.py +++ b/sdk/python/arvados/arvfile.py @@ -501,7 +501,7 @@ class _BlockManager(object): # blocks pending. If they are full 64 MiB blocks, that means up to # 256 MiB of internal buffering, which is the same size as the # default download block cache in KeepClient. - self._put_queue = Queue.Queue(maxsize=1) + self._put_queue = Queue.Queue(maxsize=2) self._put_threads = [] for i in xrange(0, self.num_put_threads): @@ -1070,12 +1070,15 @@ class ArvadosFile(object): return 0 @synchronized - def manifest_text(self, stream_name=".", portable_locators=False, normalize=False): + def manifest_text(self, stream_name=".", portable_locators=False, + normalize=False, only_committed=False): buf = "" filestream = [] for segment in self.segments: loc = segment.locator - if loc.startswith("bufferblock"): + if self.parent._my_block_manager().is_bufferblock(loc): + if only_committed: + continue loc = self._bufferblocks[loc].calculate_locator() if portable_locators: loc = KeepLocator(loc).stripped()