smengcl commented on code in PR #4460:
URL: https://github.com/apache/ozone/pull/4460#discussion_r1146686756


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java:
##########
@@ -488,6 +501,8 @@ public Builder addMetadata(String key, String value) {
 
     public Builder addAllMetadata(Map<String, String> newMetadata) {
       metadata.putAll(newMetadata);
+
+      setHSync(metadata.containsKey(OzoneConsts.HSYNC_CLIENT_ID));

Review Comment:
   Got it. Thanks!
   
   The final goal is to prevent other clients from opening the file while the 
first client hasn't closed the hsync'ed file yet correct?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to