HDFS-15166. Remove redundant field fStream in ByteStringLog. Contributed by Xieming Li.

This commit is contained in:
Ayush Saxena 2020-02-24 20:17:01 +05:30
parent b5698e0c33
commit 93b8f453b9

View File

@ -67,7 +67,6 @@ static private enum State {
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 @@ private void init(boolean verifyLayoutVersion)
throws LogHeaderCorruptException, IOException {
Preconditions.checkState(state == State.UNINIT);
BufferedInputStream bin = null;
InputStream fStream = null;
try {
fStream = log.getInputStream();
bin = new BufferedInputStream(fStream);