rakeshadr commented on a change in pull request #2941:
URL: https://github.com/apache/ozone/pull/2941#discussion_r773849468
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRequest.java
##########
@@ -485,6 +495,31 @@ protected void getFileEncryptionInfoForMpuKey(KeyArgs
keyArgs,
}
}
+ /**
+ * Get parent ID for the user given keyName.
+ *
+ * @param omMetadataManager
+ * @param volumeName - volume name.
+ * @param bucketName - bucket name.
+ * @param keyName - key name.
+ * @return
+ * @throws IOException
+ */
+ protected long getParentId(OMMetadataManager omMetadataManager,
Review comment:
I think, its good to move this utility function to OmFileRequest.java
class, isn't it?
--
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]