diff options
-rw-r--r-- | glusterfs-hadoop/0.20.2/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFSXattr.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfs-hadoop/0.20.2/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFSXattr.java b/glusterfs-hadoop/0.20.2/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFSXattr.java index 18e9003b43e..455dda97e9c 100644 --- a/glusterfs-hadoop/0.20.2/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFSXattr.java +++ b/glusterfs-hadoop/0.20.2/src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFSXattr.java @@ -327,7 +327,6 @@ public class GlusterFSXattr { } } - rsize = replicas.get(0).size(); stripeSize = meta.get("block-size"); nrAllocs = (int) (((len - start) / stripeSize) + 1); @@ -350,6 +349,8 @@ public class GlusterFSXattr { done = true; } + rsize = replicas.get(counter).size(); + if (hnts == null) repl[allocCtr] = new GlusterFSBrickRepl(rsize, stripeStart, (stripeEnd - stripeStart)); |