You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2020/02/24 15:02:31 UTC
[hadoop] branch branch-3.2 updated: HDFS-15166. Remove redundant
field fStream in ByteStringLog. Contributed by Xieming Li.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new af46658 HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by Xieming Li.
af46658 is described below
commit af46658baf3db9fcd5bc09da04e9c289d515dec3
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Mon Feb 24 20:17:01 2020 +0530
HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by Xieming Li.
---
.../org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
index 47a4dcf..b15fe2f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java
@@ -67,7 +67,6 @@ public class EditLogFileInputStream extends EditLogInputStream {
CLOSED
}
private State state = State.UNINIT;
- private InputStream fStream = null;
private int logVersion = 0;
private FSEditLogOp.Reader reader = null;
private FSEditLogLoader.PositionTrackingInputStream tracker = null;
@@ -153,6 +152,7 @@ public class EditLogFileInputStream extends EditLogInputStream {
throws LogHeaderCorruptException, IOException {
Preconditions.checkState(state == State.UNINIT);
BufferedInputStream bin = null;
+ InputStream fStream = null;
try {
fStream = log.getInputStream();
bin = new BufferedInputStream(fStream);
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org