• Alvaro Herrera's avatar
    Fix erroneous choices of segNo variables · 9b8dd7e8
    Alvaro Herrera authored
    Commit dfda6eba (which changed segment numbers to use a single 64 bit
    variable instead of log/seg) introduced a couple of bogus choices of
    exactly which log segment number variable to use in each case.
    
    This is currently pretty harmless; in one place, the bogus number was
    only being used in an error message for a pretty unlikely condition
    (failure to fsync a WAL segment file).  In the other, it was using a
    global variable instead of the local variable; but all callsites were
    passing the value of the global variable anyway.
    
    No need to backpatch because that commit is not on earlier branches.
    9b8dd7e8
xlog.c 294 KB