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
ef7972ef
Commit
ef7972ef
authored
Oct 18, 2013
by
Sofia Papagiannaki
Browse files
pithos: Do not report size change in move folder operation
Refs: #4154
parent
3d471ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-pithos-backend/pithos/backends/modular.py
View file @
ef7972ef
...
...
@@ -1153,10 +1153,12 @@ class ModularBackend(BaseBackend):
user
,
dest_account
,
dest_container
,
vdest_name
,
size
,
vtype
,
hash
,
None
,
dest_domain
,
meta
=
{},
replace_meta
=
False
,
permissions
=
None
,
src_node
=
node
,
src_version_id
=
src_version_id
,
is_copy
=
is_copy
))
src_version_id
=
src_version_id
,
is_copy
=
is_copy
,
report_size_change
=
report_size_change
))
if
is_move
and
((
src_account
,
src_container
,
src_name
)
!=
(
dest_account
,
dest_container
,
dest_name
)):
self
.
_delete_object
(
user
,
src_account
,
src_container
,
path
)
self
.
_delete_object
(
user
,
src_account
,
src_container
,
path
,
report_size_change
=
report_size_change
)
return
(
dest_version_ids
[
0
]
if
len
(
dest_version_ids
)
==
1
else
dest_version_ids
)
...
...
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