parent
33bfe2678b
commit
8c67ed14e8
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ class SwiftStorage(BaseStorage):
|
|||
if bytes_written > 0:
|
||||
updated_metadata[_SEGMENTS_KEY].append(_PartUploadMetadata(segment_path, offset,
|
||||
bytes_written))
|
||||
else:
|
||||
# Delete the empty segment.
|
||||
self.remove(segment_path)
|
||||
|
||||
return bytes_written, updated_metadata
|
||||
|
||||
|
|
Reference in a new issue