Skip to content

Commit a9446a9

Browse files
committed
Move the logic from getReplication() to getDefaultReplication. Removed getReplicationMethod(). BZ927274
1 parent 763688a commit a9446a9

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
@@ -509,8 +509,7 @@ public long getLength(Path path) throws IOException{
509509
return f.length();
510510
}
511511

512-
@Deprecated
513-
public short getReplication(Path path) throws IOException{
512+
public short getDefaultReplication(Path path) throws IOException{
514513
Path absolute=makeAbsolute(path);
515514
File f=new File(absolute.toUri().getPath());
516515

@@ -520,10 +519,6 @@ public short getReplication(Path path) throws IOException{
520519
return xattr.getReplication(f.getPath());
521520
}
522521

523-
public short getDefaultReplication(Path path) throws IOException{
524-
return getReplication(path);
525-
}
526-
527522
public boolean setReplication(Path path,short replication) throws IOException{
528523
return true;
529524
}

0 commit comments

Comments
 (0)