From 289c2902d6a81f7a5b6da04c24cc955bd5427178 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 8 Dec 2011 11:42:50 +0530 Subject: iobuf: fix a crash in iobuf when statedump is taken With the previous patch this change was missed. Change-Id: If536cef3fa423415eaa4104e6c3e5e72c5d0a22d BUG: 3854 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/775 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/iobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit