Browse Source

HDFS-856. Hardcoded replication level for new files in fuse-dfs. Contributed by Brian Bockelman.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@921593 13f79535-47bb-0310-9956-ffa450edef68
Thomas White 15 years ago
parent
commit
7ecf79188c

+ 3 - 0
CHANGES.txt

@@ -176,6 +176,9 @@ Trunk (unreleased changes)
     HDFS-999. Secondary namenode should login using kerberos if security is 
     configured (boryas)
 
+    HDFS-856. Hardcoded replication level for new files in fuse-dfs.
+    (Brian Bockelman via tomwhite)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 1 - 1
src/contrib/fuse-dfs/src/fuse_impls_open.c

@@ -50,7 +50,7 @@ int dfs_open(const char *path, struct fuse_file_info *fi)
     return -EIO;
   }
 
-  if ((fh->hdfsFH = hdfsOpenFile(fh->fs, path, flags,  0, 3, 0)) == NULL) {
+  if ((fh->hdfsFH = hdfsOpenFile(fh->fs, path, flags,  0, 0, 0)) == NULL) {
     syslog(LOG_ERR, "ERROR: could not connect open file %s:%d\n", __FILE__, __LINE__);
     return -EIO;
   }

+ 1 - 1
src/contrib/fuse-dfs/src/fuse_impls_truncate.c

@@ -54,7 +54,7 @@ int dfs_truncate(const char *path, off_t size)
   int flags = O_WRONLY | O_CREAT;
 
   hdfsFile file;
-  if ((file = (hdfsFile)hdfsOpenFile(userFS, path, flags,  0, 3, 0)) == NULL) {
+  if ((file = (hdfsFile)hdfsOpenFile(userFS, path, flags,  0, 0, 0)) == NULL) {
     syslog(LOG_ERR, "ERROR: could not connect open file %s:%d\n", __FILE__, __LINE__);
     return -EIO;
   }