• Robert Haas's avatar
    Improve pg_check_dir code and comments. · 5d6c2405
    Robert Haas authored
    Avoid losing errno if readdir() fails and closedir() works.  Consistently
    return 4 rather than 3 if both a lost+found directory and other files are
    found, rather than returning one value or the other depending on the
    order of the directory listing.  Update comments to match the actual
    behavior.
    
    These oversights date to commits 6f03927f
    and 17f15239.
    
    Marco Nenciarini
    5d6c2405
pgcheckdir.c 1.99 KB