priyeshkaratha commented on code in PR #12170:
URL: https://github.com/apache/ozone/pull/12170#discussion_r4779191385


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmLCRule.java:
##########
@@ -289,6 +289,23 @@ public boolean match(OmDirectoryInfo dirInfo, String 
keyPath) {
     return matched;
   }
 
+  /**
+   * Whether this rule is enabled, has an Expiration action, and its prefix or 
filter applies to the key,
+   * regardless of whether the key has already expired.
+   *
+   * @param omKeyInfo detail Key info to evaluate against this rule
+   * @param keyPath path include key name and all its parent, except bucket 
and volume
+   */
+  public boolean appliesForExpiration(OmKeyInfo omKeyInfo, String keyPath) {

Review Comment:
   Done.



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