[Bugs] [Bug 1366284] fix bug in protocol/client lookup callback
bugzilla at redhat.com
bugzilla at redhat.com
Wed Aug 17 10:26:08 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1366284
--- Comment #4 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/15120 committed in master by Pranith Kumar
Karampuri (pkarampu at redhat.com)
------
commit 59186114f9545fda529368ee26c3cd3d88a80751
Author: Anuradha Talur <atalur at redhat.com>
Date: Tue Aug 9 21:09:11 2016 +0530
protocol/client: Unserialize xdata even if lookup fails
Problem:
AFR relies on xdata returned by lookup to determine if
there are any files that need healing. This info is further
used to optimize readdirp.
In case of lookups with negative return value, client
xlator was sending NULL xdata. Due to absence of xdata,
AFR conservatively assumes that there are files that
need healing, which is incorrect.
Solution:
Even in case of unsuccessful lookups, send the xdata received
by protocol client so that higher xlators can get the info
that they rely on.
Change-Id: Id3a1023eb536180888eb2c0b39050000b76f7226
BUG: 1366284
Signed-off-by: Anuradha Talur <atalur at redhat.com>
Reviewed-on: http://review.gluster.org/15120
Smoke: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Poornima G <pgurusid at redhat.com>
Tested-by: Poornima G <pgurusid at redhat.com>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Ashish Pandey <aspandey at redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=kF83Q8HCct&a=cc_unsubscribe
More information about the Bugs
mailing list