Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
3ec5c230
Commit
3ec5c230
authored
May 22, 2013
by
Stavros Sachtouris
Browse files
Wait threads to finish in pithos append_object
parent
545c6c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/clients/pithos/__init__.py
View file @
3ec5c230
...
...
@@ -1272,7 +1272,6 @@ class PithosClient(PithosRestClient):
:param upload_db: progress.bar for uploading
"""
self
.
_assert_container
()
meta
=
self
.
get_container_info
()
blocksize
=
int
(
meta
[
'x-container-block-size'
])
...
...
@@ -1317,6 +1316,9 @@ class PithosClient(PithosRestClient):
sendlog
.
info
(
'- - - wait for threads to finish'
)
for
thread
in
activethreads
():
thread
.
join
()
finally
:
from
time
import
sleep
sleep
(
1.1
*
len
(
activethreads
()))
return
headers
.
values
()
def
truncate_object
(
self
,
obj
,
upto_bytes
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment