wgtmac commented on PR #44990:
URL: https://github.com/apache/arrow/pull/44990#issuecomment-2743816072

   ```
   diff --git a/cpp/src/parquet/file_reader.cc b/cpp/src/parquet/file_reader.cc
   index 7b6c052a6..588c78558 100644
   --- a/cpp/src/parquet/file_reader.cc
   +++ b/cpp/src/parquet/file_reader.cc
   @@ -579,11 +579,12 @@ class SerializedFile : public 
ParquetFileReader::Contents {
          int64_t metadata_start = read_size.first;
          metadata_len = read_size.second;
          return source_->ReadAsync(metadata_start, metadata_len)
   -          .Then([this, metadata_len, is_encrypted_footer, file_decryptor](
   +          .Then([this, metadata_len, is_encrypted_footer,
   +                 file_decryptor = std::move(file_decryptor)](
                        const std::shared_ptr<::arrow::Buffer>& 
metadata_buffer) {
                // Continue and read the file footer
                return ParseMetaDataFinal(metadata_buffer, metadata_len, 
is_encrypted_footer,
   -                                      file_decryptor);
   +                                      std::move(file_decryptor));
              });
        }
        return ParseMetaDataFinal(std::move(metadata_buffer), metadata_len,
   ```
   
   Should we do this? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to