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
synnefo
Commits
6b9ca4dc
Commit
6b9ca4dc
authored
Aug 08, 2013
by
Sofia Papagiannaki
Browse files
pithos: Fix IndexError in update from other object
parent
d606aa12
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/pithos/api/functions.py
View file @
6b9ca4dc
...
...
@@ -1432,7 +1432,8 @@ def object_update(request, v_account, v_container, v_object):
data
=
''
sbi
=
0
while
length
>
0
:
data
+=
request
.
backend
.
get_block
(
src_hashmap
[
sbi
])
if
sbi
<
len
(
src_hashmap
):
data
+=
request
.
backend
.
get_block
(
src_hashmap
[
sbi
])
if
length
<
request
.
backend
.
block_size
:
data
=
data
[:
length
]
bytes
=
put_object_block
(
request
,
hashmap
,
data
,
offset
)
...
...
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