Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/server/object_mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,13 @@ function allocate_object_parts(bucket, obj, parts) {
function finalize_object_parts(bucket, obj, parts) {
var block_ids = _.flatten(_.map(parts, 'block_ids'));
var chunks;
var upload_part_number = (parts[0].upload_part_number ? parts[0].upload_part_number : null);
dbg.log1('finalize_object_parts', upload_part_number);
var upload_part_number = null;
if (parts && parts[0] && !_.isUndefined(parts[0].upload_part_number)) {
dbg.log1('update upload part number with', parts[0].upload_part_number);
upload_part_number = parts[0].upload_part_number;
}
dbg.log1('finalize_object_parts', upload_part_number, parts[0].upload_part_number, parts);

return Q.all([

// find parts by start offset, deleted parts are handled later
Expand Down