[Bugs] [Bug 1227572] Sharding - Fix posix compliance test failures.

bugzilla at redhat.com bugzilla at redhat.com
Thu Jun 4 01:59:38 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1227572



--- Comment #3 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/11051 committed in release-3.7 by Pranith
Kumar Karampuri (pkarampu at redhat.com) 
------
commit ebeab96411947ca73c946422aef8af9bcd88ff05
Author: Krutika Dhananjay <kdhananj at redhat.com>
Date:   Sat May 16 21:23:48 2015 +0530

    features/shard: Fix incorrect parameter to get_lowest_block()

            Backport of: http://review.gluster.org/10804

    Due to get_lowest_block() being a macro, what needs to be passed
    to it is the evaluation of the expression (local->offset - 1), without
    which its substitution can cause junk values to be assigned to
    local->first_block.

    This patch also fixes calls to get_highest_block() where if offset and
    size are both equal to zero, it could return negative values.

    Change-Id: I8f1bc54b536587d6af3a5c193434d06dccbf76dc
    BUG: 1227572
    Signed-off-by: Krutika Dhananjay <kdhananj at redhat.com>
    Reviewed-on: http://review.gluster.org/11051
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.


More information about the Bugs mailing list