summaryrefslogtreecommitdiffstats
path: root/extras/hook-scripts/start/post
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2016-04-24 06:31:14 +0530
committerNiels de Vos <ndevos@redhat.com>2016-04-24 06:44:44 -0700
commit3c04a91f5245708d0a148bf01cfdac1d0d59c797 (patch)
tree3de196110d55780dd8df1ae36de9283abd7b4350 /extras/hook-scripts/start/post
parentbfd5c7683708949e87bd40fb0ddb6933021c6912 (diff)
statedump: Prevent (null) typestr to be printed
Problem: After the commits: 7e44c783ad731856956929f6614bbe045c26ea3a - lock: use spinlock only on multicore systems a6aecae2cd8171b8538bfe5d2800bdd157380b85 - nfs: fix lock variable type we see a lot of "[global.glusterfs - usage-type (null) memusage]" in statedump because lock status is not all-zeros after init, and the memcmp to check that a datatype is never allocated is invalid. Fix: Changed if a datatype is allocated or not check based on total_allocs. Also removed setting typestr to NULL on gf_free even when num_allocs is 0. Because even that is leading to 'null' memusage string to be printed in statedump. BUG: 1329870 Change-Id: If2b01a557cbdc787625db32e276e06cee3ac46ee Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/14054 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'extras/hook-scripts/start/post')
0 files changed, 0 insertions, 0 deletions