diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-03-29 12:17:12 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-29 04:52:53 -0700 |
commit | 834408a49f204e8c256dad4b46d0f19053bf4b0e (patch) | |
tree | 947d7b0e2d6ae457fa451d8c696e5c37e3b3ec69 /.gitignore | |
parent | fbfb4d48491b160436e6ac986057a8fe5e320502 (diff) |
cluster/afr: handle fstat failure in data-self-heal
The final fstat which makes the call_count 0 could be a failure.
In that case the buf could either be NULL or buf is all zeros.
If buf is NULL then it will crash, if it is all zeros
buf->ia_type will be IA_INVAL and it proceeds to special file fix.
sh->type is assigned with the ia_type of the file to be healed.
I modified the code to depend on that instead.
Change-Id: Icf7e19ff5908207128f2a1ee2963ad6b791c1ac5
BUG: 804645
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/3031
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions