summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src
diff options
context:
space:
mode:
authorJulesWang <w.jq0722@gmail.com>2013-03-18 10:06:06 +0800
committerAnand Avati <avati@redhat.com>2013-03-18 11:34:24 -0700
commit1975c5416402f3a64d5359e50a2c48b44f100d16 (patch)
tree582ba87b765f755161cb4e86da644263a6998285 /xlators/cluster/dht/src
parent1409ea2e80e8d15d3202bcf6e1b9c0e0d461697c (diff)
dht: fix a typo
Change-Id: Id6f156957e58aad06bf2602f880c7e4102b80fd1 BUG: 764890 Signed-off-by: JulesWang <w.jq0722@gmail.com> Reviewed-on: http://review.gluster.org/4679 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index 7b75ab388..b8d873aac 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -564,7 +564,7 @@ dht_selfheal_layout_maximize_overlap (call_frame_t *frame, loc_t *loc,
if (!table) {
return;
}
- memset(table,0,sizeof(overlap)*new->cnt*new->cnt);
+ memset(table,0,sizeof(overlap)*old->cnt*new->cnt);
for (i = 0; i < new->cnt; ++i) {
for (j = 0; j < old->cnt; ++j) {
OV_ENTRY(i,j) = dht_overlap_calc(old,j,new,i);