summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-data.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-11-09 13:11:58 +0530
committerVijay Bellur <vijay@gluster.com>2011-11-09 09:32:34 -0800
commita9b785b84e509c4dd9ffe3e580201ae1f000599d (patch)
tree943150439f8fa88fe7ae228a020ae387ac59051d /xlators/cluster/afr/src/afr-self-heal-data.c
parent78a7a092d7a43a7242f863c201a1390b6fbf05b9 (diff)
cluster/distribute stat: Take ref on inode before to prevent crash.
Possible situation is a forget call which unref's the inode, and the layout gets freed before we access it in stat. By taking a ref before we call ctx get, the layout is going to be persistent till we unref it. Also use local call_cnt var instead of layout->cnt when wind is involved Change-Id: Ie04a7afd9e2c89cc14c08dd923d06c5f0193beb8 BUG: 3730 Reviewed-on: http://review.gluster.com/687 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
0 files changed, 0 insertions, 0 deletions