Skip to content

Commit 73c1d9d

Browse files
committed
rebase fix2
1 parent 705f8b1 commit 73c1d9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/aws/processors/PutS3Object.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ void PutS3Object::onSchedule(core::ProcessContext& context, core::ProcessSession
8888
multipart_upload_max_age_threshold_ = minifi::utils::parseDurationProperty(context, MultipartUploadMaxAgeThreshold);
8989
logger_->log_debug("PutS3Object: Multipart Upload Max Age Threshold {}", multipart_upload_max_age_threshold_);
9090

91-
std::string value = parseProperty(context, ChecksumAlgorithm);
92-
if (!ranges::contains(CHECKSUM_ALGORITHMS, value)) {
91+
const auto checksum_algorithm_str = parseProperty(context, ChecksumAlgorithm);
92+
if (!ranges::contains(CHECKSUM_ALGORITHMS, checksum_algorithm_str)) {
9393
throw Exception(PROCESS_SCHEDULE_EXCEPTION, "Checksum Algorithm property missing or invalid");
9494
}
9595

96-
checksum_algorithm_ = minifi::utils::at(aws::s3::CHECKSUM_ALGORITHM_MAP, value);
96+
checksum_algorithm_ = minifi::utils::at(aws::s3::CHECKSUM_ALGORITHM_MAP, checksum_algorithm_str);
9797
logger_->log_debug("PutS3Object: Checksum Algorithm {}", magic_enum::enum_name(checksum_algorithm_));
9898

9999
fillUserMetadata(context);

0 commit comments

Comments
 (0)