tolleybot commented on code in PR #39623:
URL: https://github.com/apache/arrow/pull/39623#discussion_r1455916218


##########
cpp/src/parquet/encryption/internal_file_decryptor.cc:
##########
@@ -138,6 +139,9 @@ std::shared_ptr<Decryptor> 
InternalFileDecryptor::GetFooterDecryptor(
 
   // Create both data and metadata decryptors to avoid redundant retrieval of 
key
   // from the key_retriever.
+
+  std::lock_guard<std::mutex> lock(mutex_);  // Lock the critical section

Review Comment:
   I limited the scope as suggested



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to