Skip to content

Commit b3e898c

Browse files
committed
Merge pull request #28 from gluster/BZ927274
Move the logic from getReplication() to getDefaultReplication. Removed ...
2 parents 9d20c8a + a9446a9 commit b3e898c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,7 @@ public long getLength(Path path) throws IOException{
527527
return f.length();
528528
}
529529

530-
@Deprecated
531-
public short getReplication(Path path) throws IOException{
530+
public short getDefaultReplication(Path path) throws IOException{
532531
Path absolute=makeAbsolute(path);
533532
File f=new File(absolute.toUri().getPath());
534533

@@ -538,10 +537,6 @@ public short getReplication(Path path) throws IOException{
538537
return xattr.getReplication(f.getPath());
539538
}
540539

541-
public short getDefaultReplication(Path path) throws IOException{
542-
return getReplication(path);
543-
}
544-
545540
public boolean setReplication(Path path,short replication) throws IOException{
546541
return true;
547542
}

0 commit comments

Comments
 (0)