This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new ef2bf98c37 HDDS-11669. In OmUtils.normalizeKey isDebugEnabled should
be evaluated first (#7411)
ef2bf98c37 is described below
commit ef2bf98c3798b2ab9a656969d7093a5b7f034cb4
Author: Stephen O'Donnell <[email protected]>
AuthorDate: Fri Nov 8 15:01:29 2024 +0000
HDDS-11669. In OmUtils.normalizeKey isDebugEnabled should be evaluated
first (#7411)
---
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
index d632006125..9565d2db8e 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
@@ -767,7 +767,7 @@ public final class OmUtils {
normalizedKeyName = new Path(OM_KEY_PREFIX + keyName)
.toUri().getPath();
}
- if (!keyName.equals(normalizedKeyName) && LOG.isDebugEnabled()) {
+ if (LOG.isDebugEnabled() && !keyName.equals(normalizedKeyName)) {
LOG.debug("Normalized key {} to {} ", keyName,
normalizedKeyName.substring(1));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]