diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-25 14:44:18 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-25 14:44:18 -0700 |
| commit | 596d476e3d858d2cb0520231f1da44804e7f2be1 (patch) | |
| tree | 2acd13f24c13df9ffc1a0c5392f91e4e2d7e4fb9 /other/java/hdfs2/src | |
| parent | 63b0fb54f76179a44c37041d78feb8c033540c2c (diff) | |
| download | seaweedfs-596d476e3d858d2cb0520231f1da44804e7f2be1.tar.xz seaweedfs-596d476e3d858d2cb0520231f1da44804e7f2be1.zip | |
HCFS: 1.5.2
Diffstat (limited to 'other/java/hdfs2/src')
| -rw-r--r-- | other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedOutputStream.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedOutputStream.java b/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedOutputStream.java index 1a638677f..dbcae6423 100644 --- a/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedOutputStream.java +++ b/other/java/hdfs2/src/main/java/seaweed/hdfs/SeaweedOutputStream.java @@ -185,7 +185,7 @@ public class SeaweedOutputStream extends OutputStream { } final Future<Void> job = completionService.submit(() -> { // System.out.println(path + " is going to save [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")"); - SeaweedWrite.writeData(entry, replication, filerGrpcClient, writePosition, bufferToWrite.array(), bufferToWrite.position(), bufferToWrite.limit()); + SeaweedWrite.writeData(entry, replication, filerGrpcClient, writePosition, bufferToWrite.array(), bufferToWrite.position(), bufferToWrite.limit(), getParentDirectory(path)); // System.out.println(path + " saved [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")"); ByteBufferPool.release(bufferToWrite); return null; |
