summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/iobuf.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-12-08 11:42:50 +0530
committerVijay Bellur <vijay@gluster.com>2011-12-07 22:27:10 -0800
commit289c2902d6a81f7a5b6da04c24cc955bd5427178 (patch)
tree205305e99e311de7a8e287a56eeaf3d32f3d2c77 /libglusterfs/src/iobuf.c
parent017344be59fbbd4cf6d29d3f5a6581b468dc29c9 (diff)
iobuf: fix a crash in iobuf when statedump is takenv3.3.0qa15
With the previous patch this change was missed. Change-Id: If536cef3fa423415eaa4104e6c3e5e72c5d0a22d BUG: 3854 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/775 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src/iobuf.c')
-rw-r--r--libglusterfs/src/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/iobuf.c b/libglusterfs/src/iobuf.c
index e02d1e16559..93bc7732e57 100644
--- a/libglusterfs/src/iobuf.c
+++ b/libglusterfs/src/iobuf.c
@@ -968,7 +968,7 @@ iobuf_stats_dump (struct iobuf_pool *iobuf_pool)
gf_proc_dump_write("iobuf_pool.arena_cnt", "%d",
iobuf_pool->arena_cnt);
- for (j = 0; j < GF_VARIABLE_IOBUF_COUNT; j++) {
+ for (j = 0; j < IOBUF_ARENA_MAX_INDEX; j++) {
list_for_each_entry (trav, &iobuf_pool->arenas[j], list) {
snprintf(msg, sizeof(msg),
"arena.%d", i);