aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-02-17 10:19:30 -0500
committerRobert Haas <rhaas@postgresql.org>2015-02-17 10:19:30 -0500
commit5d6c2405f4bae6c87533d981d6a47587db501220 (patch)
tree9988097186f9c8c2f78851304d401264e0e443a7 /src/backend/access/gist/gistutil.c
parentc923e82a231ebfe7c4329984c68819e26837bee6 (diff)
downloadpostgresql-5d6c2405f4bae6c87533d981d6a47587db501220.tar.gz
postgresql-5d6c2405f4bae6c87533d981d6a47587db501220.zip
Improve pg_check_dir code and comments.
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 6f03927fce038096f53ca67eeab9adb24938f8a6 and 17f15239325a88581bb4f9cf91d38005f1f52d69. Marco Nenciarini
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions