HDFS-2722. HttpFs should not be using an int for block size. (harsh)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1226861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Harsh J 2012-01-03 16:47:49 +00:00
parent 5f15c292dc
commit 05ed36cd52
2 changed files with 4 additions and 2 deletions

View File

@ -273,10 +273,10 @@ public FSCreate(InputStream is, String path, String perm, boolean override, shor
@Override
public Void execute(FileSystem fs) throws IOException {
if (replication == -1) {
replication = (short) fs.getConf().getInt("dfs.replication", 3);
replication = fs.getDefaultReplication();
}
if (blockSize == -1) {
blockSize = fs.getConf().getInt("dfs.block.size", 67108864);
blockSize = fs.getDefaultBlockSize();
}
FsPermission fsPermission = getPermission(permission);
int bufferSize = fs.getConf().getInt("httpfs.buffer.size", 4096);

View File

@ -258,6 +258,8 @@ Release 0.23.1 - UNRELEASED
HDFS-2574. Remove references to some deprecated properties in conf templates and defaults files. (Joe Crobak via harsh)
HDFS-2722. HttpFs should not be using an int for block size. (harsh)
OPTIMIZATIONS
HDFS-2130. Switch default checksum to CRC32C. (todd)