Commit 3ec5c230 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Wait threads to finish in pithos append_object

parent 545c6c29
......@@ -1272,7 +1272,6 @@ class PithosClient(PithosRestClient):
:param upload_db: for uploading
meta = self.get_container_info()
blocksize = int(meta['x-container-block-size'])
......@@ -1317,6 +1316,9 @@ class PithosClient(PithosRestClient):'- - - wait for threads to finish')
for thread in activethreads():
from time import sleep
sleep(1.1 * len(activethreads()))
return headers.values()
def truncate_object(self, obj, upto_bytes):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment