Skip to content

Commit 8efd2e7

Browse files
jackyalbonimrod-becker
authored andcommitted
A fix for files with no parts
1 parent 6786fe8 commit 8efd2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/object_services/map_writer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ async function complete_object_multiparts(obj, multipart_req) {
341341
`multipart num=${num} etag=${etag} etag_md5_b64=${etag_md5_b64} not found in group ${util.inspect(group)}`);
342342
}
343343
md5.update(mp.md5_b64, 'base64');
344-
const mp_parts = parts_by_mp[mp._id];
344+
const mp_parts = parts_by_mp[mp._id] || [];
345345
_process_next_parts(mp_parts, context);
346346
used_multiparts.push(mp);
347347
// console.log('TODO GGG COMPLETE MULTIPART', JSON.stringify(mp));

0 commit comments

Comments
 (0)