• Tom Lane's avatar
    Fix off-by-one bug in LWLockRegisterTranche(). · 4bfc5f13
    Tom Lane authored
    Original coding failed to enlarge the array as required if
    the requested tranche_id was equal to LWLockTranchesAllocated.
    
    In passing, fix poor style of not casting the result of (re)palloc.
    4bfc5f13
lwlock.c 32.5 KB