Skip to content

Commit

Permalink
Merge pull request #461 from noobaa/eran_alpha_updates
Browse files Browse the repository at this point in the history
fix for small uploads
  • Loading branch information
tamireran committed Aug 6, 2015
2 parents fe869c9 + 24fb569 commit 4621d1e
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit 4621d1e

Please sign in to comment.