@@ -68,9 +68,6 @@ public class GlusterFileSystem extends FileSystem{
68
68
private int writeBufferSize = 0 ;
69
69
70
70
71
- /* for quick IO */
72
- private boolean quickSlaveIO =false ;
73
-
74
71
/* extended attribute class */
75
72
private GlusterFSXattr xattr =null ;
76
73
@@ -110,7 +107,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
110
107
boolean ret =false ;
111
108
String volName =null ;
112
109
String remoteGFSServer =null ;
113
- String needQuickRead =null ;
114
110
boolean autoMount =true ;
115
111
116
112
@@ -123,7 +119,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
123
119
volName =conf .get ("fs.glusterfs.volname" , null );
124
120
glusterMount =conf .get ("fs.glusterfs.mount" , null );
125
121
remoteGFSServer =conf .get ("fs.glusterfs.server" , null );
126
- needQuickRead =conf .get ("quick.slave.io" , null );
127
122
autoMount =conf .getBoolean ("fs.glusterfs.automount" , true );
128
123
writeBufferSize = conf .getInt ("fs.glusterfs.write.buffer.size" , 0 );
129
124
LOG .info ("Gluster Output Buffering size configured to " + writeBufferSize + " bytes." );
@@ -144,8 +139,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
144
139
throw new RuntimeException ("Initialize: Failed to mount GlusterFS " );
145
140
}
146
141
}
147
- if ((needQuickRead .length ()!=0 )&&(needQuickRead .equalsIgnoreCase ("yes" )||needQuickRead .equalsIgnoreCase ("on" )||needQuickRead .equals ("1" )))
148
- this .quickSlaveIO =true ;
149
142
150
143
this .mounted =true ;
151
144
this .glusterFs =FileSystem .getLocal (conf );
@@ -451,8 +444,6 @@ public FSDataOutputStream create(Path path,FsPermission permission,boolean overw
451
444
* open the file in read mode (internally the file descriptor is an instance
452
445
* of InputStream class).
453
446
*
454
- * if quick read mode is set then read the file by by-passing FUSE if we are
455
- * on same slave where the file exist
456
447
*/
457
448
public FSDataInputStream open (Path path ) throws IOException {
458
449
Path absolute =makeAbsolute (path );
@@ -463,9 +454,6 @@ public FSDataInputStream open(Path path) throws IOException{
463
454
if (!f .exists ())
464
455
throw new IOException ("File " +f .getPath ()+" does not exist." );
465
456
466
- if (quickSlaveIO )
467
- hnts =xattr .quickIOPossible (f .getPath (), 0 , f .length ());
468
-
469
457
glusterFileStream =new FSDataInputStream (new GlusterFUSEInputStream (f , hnts , hostname ));
470
458
return glusterFileStream ;
471
459
}
0 commit comments