Skip to content

Commit

Permalink
Merge pull request #196 from mziccard/fix-copy-source-generation
Browse files Browse the repository at this point in the history
Fix source (meta)generation parameters in StorageImpl.copy
  • Loading branch information
aozarov committed Oct 1, 2015
2 parents a6ccc30 + 4bca63e commit 0de3141
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,11 @@ public StorageObject copy(StorageObject source, Map<Option, ?> sourceOptions,
.copy(source.getBucket(), source.getName(), target.getBucket(), target.getName(),
target.getContentType() != null ? target : null)
.setProjection(DEFAULT_PROJECTION)
.setIfMetagenerationMatch(IF_SOURCE_METAGENERATION_MATCH.getLong(sourceOptions))
.setIfMetagenerationNotMatch(IF_SOURCE_METAGENERATION_NOT_MATCH.getLong(sourceOptions))
.setIfGenerationMatch(IF_SOURCE_GENERATION_MATCH.getLong(sourceOptions))
.setIfGenerationNotMatch(IF_SOURCE_GENERATION_NOT_MATCH.getLong(sourceOptions))
.setIfSourceMetagenerationMatch(IF_SOURCE_METAGENERATION_MATCH.getLong(sourceOptions))
.setIfSourceMetagenerationNotMatch(
IF_SOURCE_METAGENERATION_NOT_MATCH.getLong(sourceOptions))
.setIfSourceGenerationMatch(IF_SOURCE_GENERATION_MATCH.getLong(sourceOptions))
.setIfSourceGenerationNotMatch(IF_SOURCE_GENERATION_NOT_MATCH.getLong(sourceOptions))
.setIfMetagenerationMatch(IF_METAGENERATION_MATCH.getLong(targetOptions))
.setIfMetagenerationNotMatch(IF_METAGENERATION_NOT_MATCH.getLong(targetOptions))
.setIfGenerationMatch(IF_GENERATION_MATCH.getLong(targetOptions))
Expand Down

0 comments on commit 0de3141

Please sign in to comment.