From 6839f96c0cd417a2f05d5ce999030c5e314dce84 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 22 Jul 2020 22:52:49 -0700 Subject: simplify --- other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedOutputStream.java | 1 - 1 file changed, 1 deletion(-) (limited to 'other/java/hdfs3/src') diff --git a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedOutputStream.java b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedOutputStream.java index 05805b9e5..37068c73a 100644 --- a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedOutputStream.java +++ b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedOutputStream.java @@ -234,7 +234,6 @@ public class SeaweedOutputStream extends OutputStream implements Syncable, Strea // System.out.println(path + " is going to save [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")"); SeaweedWrite.writeData(entry, replication, filerGrpcClient, writePosition, bufferToWrite.array(), bufferToWrite.position(), bufferToWrite.limit()); // System.out.println(path + " saved [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")"); - bufferToWrite.clear(); ByteBufferPool.release(bufferToWrite); return null; }); -- cgit v1.2.3