Skip to content

Commit

Permalink
A fix for files with no parts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyalbo authored and nimrod-becker committed Apr 11, 2019
1 parent 6786fe8 commit 8efd2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/object_services/map_writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ async function complete_object_multiparts(obj, multipart_req) {
`multipart num=${num} etag=${etag} etag_md5_b64=${etag_md5_b64} not found in group ${util.inspect(group)}`);
}
md5.update(mp.md5_b64, 'base64');
const mp_parts = parts_by_mp[mp._id];
const mp_parts = parts_by_mp[mp._id] || [];
_process_next_parts(mp_parts, context);
used_multiparts.push(mp);
// console.log('TODO GGG COMPLETE MULTIPART', JSON.stringify(mp));
Expand Down

0 comments on commit 8efd2e7

Please sign in to comment.