Revision 3f767854

b/snf-pithos-backend/pithos/backends/modular.py
780 780
        size = props[self.SIZE]
781 781
        is_copy = not is_move and (src_account, src_container, src_name) != (dest_account, dest_container, dest_name) # New uuid.
782 782
        dest_version_ids.append(self._update_object_hash(user, dest_account, dest_container, dest_name, size, type, hash, None, dest_domain, dest_meta, replace_meta, permissions, src_node=node, src_version_id=src_version_id, is_copy=is_copy))
783
        if is_move:
783
        if is_move and (src_account, src_container, src_name) != (dest_account, dest_container, dest_name):
784 784
        	self._delete_object(user, src_account, src_container, src_name)
785 785
        
786 786
        if delimiter:
......
798 798
                dest_prefix = dest_name + delimiter if not dest_name.endswith(delimiter) else dest_name
799 799
                vdest_name = path.replace(prefix, dest_prefix, 1)
800 800
                dest_version_ids.append(self._update_object_hash(user, dest_account, dest_container, vdest_name, size, vtype, hash, None, dest_domain, dest_meta, replace_meta, permissions, src_node=node, src_version_id=src_version_id, is_copy=is_copy))
801
                if is_move:
801
                if is_move and (src_account, src_container, src_name) != (dest_account, dest_container, dest_name):
802 802
                	self._delete_object(user, src_account, src_container, path)
803 803
        return dest_version_ids[0] if len(dest_version_ids) == 1 else dest_version_ids
804 804
    

Also available in: Unified diff