diff options
-rw-r--r-- | libglusterfs/src/statedump.c | 6 | ||||
-rwxr-xr-x | tests/bugs/bug-834465.t | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index 134dbd4f8f5..46008178581 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -236,9 +236,9 @@ gf_proc_dump_xlator_mem_info (xlator_t *xl) sizeof (struct mem_acct)))) continue; - gf_proc_dump_add_section ("%s.%s - usage-type %d memusage", - xl->type, xl->name, i); - gf_proc_dump_write ("type", "%s", xl->mem_acct.rec[i].typestr); + gf_proc_dump_add_section ("%s.%s - usage-type %s memusage", + xl->type, xl->name, + xl->mem_acct.rec[i].typestr); gf_proc_dump_write ("size", "%u", xl->mem_acct.rec[i].size); gf_proc_dump_write ("num_allocs", "%u", xl->mem_acct.rec[i].num_allocs); diff --git a/tests/bugs/bug-834465.t b/tests/bugs/bug-834465.t index 7e2cf27e44d..7bbf1a32aa2 100755 --- a/tests/bugs/bug-834465.t +++ b/tests/bugs/bug-834465.t @@ -20,10 +20,10 @@ TEST glusterfs --mem-accounting --volfile-server=$H0 --volfile-id=$V0 $MOUNTDIR; sdump1=$(generate_mount_statedump $V0); nalloc1=0 -grep -A3 "fuse - usage-type 85" $sdump1 +grep -A3 "fuse - usage-type gf_common_mt_fd_lk_ctx_node_t" $sdump1 if [ $? -eq '0' ] then - nalloc1=`grep -A3 "fuse - usage-type 85" $sdump1 | grep num_allocs | cut -d '=' -f2` + nalloc1=`grep -A3 "fuse - usage-type gf_common_mt_fd_lk_ctx_node_t" $sdump1 | grep num_allocs | cut -d '=' -f2` fi build_tester $(dirname $0)/bug-834465.c @@ -31,7 +31,7 @@ build_tester $(dirname $0)/bug-834465.c TEST $(dirname $0)/bug-834465 $M0/testfile sdump2=$(generate_mount_statedump $V0); -nalloc2=`grep -A3 "fuse - usage-type 85" $sdump2 | grep num_allocs | cut -d '=' -f2` +nalloc2=`grep -A3 "fuse - usage-type gf_common_mt_fd_lk_ctx_node_t" $sdump2 | grep num_allocs | cut -d '=' -f2` TEST [ $nalloc1 -eq $nalloc2 ]; |