HDFS-3760. primitiveCreate is a write, not a read. Contributed by Andy Isaacson.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1370650 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84314d99e5
commit
208da340c3
|
@ -412,6 +412,8 @@ Release 2.0.1-alpha - UNRELEASED
|
|||
|
||||
HDFS-3754. BlockSender doesn't shutdown ReadaheadPool threads. (eli)
|
||||
|
||||
HDFS-3760. primitiveCreate is a write, not a read. (Andy Isaacson via atm)
|
||||
|
||||
BREAKDOWN OF HDFS-3042 SUBTASKS
|
||||
|
||||
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
||||
|
|
|
@ -247,7 +247,7 @@ public class DistributedFileSystem extends FileSystem {
|
|||
FsPermission absolutePermission, EnumSet<CreateFlag> flag, int bufferSize,
|
||||
short replication, long blockSize, Progressable progress,
|
||||
int bytesPerChecksum) throws IOException {
|
||||
statistics.incrementReadOps(1);
|
||||
statistics.incrementWriteOps(1);
|
||||
return new HdfsDataOutputStream(dfs.primitiveCreate(getPathName(f),
|
||||
absolutePermission, flag, true, replication, blockSize,
|
||||
progress, bufferSize, bytesPerChecksum),statistics);
|
||||
|
|
Loading…
Reference in New Issue