You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by xy...@apache.org on 2021/06/11 04:15:49 UTC
[ozone] branch master updated: HDDS-5315 Skip storing unwanted
block tokens on OM DB (#2311)
This is an automated email from the ASF dual-hosted git repository.
xyao 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 6e6aefe HDDS-5315 Skip storing unwanted block tokens on OM DB (#2311)
6e6aefe is described below
commit 6e6aefe278073b6eac887f31cf0147bc457ba37c
Author: Ritesh H Shukla <ke...@gmail.com>
AuthorDate: Thu Jun 10 21:15:22 2021 -0700
HDDS-5315 Skip storing unwanted block tokens on OM DB (#2311)
---
.../java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java
index d1a721a..7764ffb 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java
@@ -182,11 +182,11 @@ public final class OmKeyLocationInfo {
.setLength(length)
.setOffset(offset)
.setCreateVersion(createVersion).setPartNumber(partNumber);
- if (this.token != null) {
- builder.setToken(OzonePBHelper.protoFromToken(token));
- }
if (!ignorePipeline) {
try {
+ if (this.token != null) {
+ builder.setToken(OzonePBHelper.protoFromToken(token));
+ }
builder.setPipeline(pipeline.getProtobufMessage(clientVersion));
} catch (UnknownPipelineStateException e) {
//TODO: fix me: we should not return KeyLocation without pipeline.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org