summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/version.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:50:49 -0500
commit5e49c98e0a9949e6f86b068837ca59c36d8619ba (patch)
treebee50000a454632ec201a43cc5cc03741a5fd1a1 /src/backend/utils/adt/version.c
parent23291a796fdeeb3ba6f28b336cebef5f98c1dcce (diff)
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/utils/adt/version.c')
0 files changed, 0 insertions, 0 deletions