aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-03-31 12:57:55 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-03-31 12:57:55 -0400
commit82e801852274e46492b0e160624a850157c677e4 (patch)
tree311e700678ff6fb4ff0cb0872a0a9f7a644e0300 /src/backend/access/transam/xlog.c
parent70dc4c509b330fdd965d795e8d7f41f09d56c9ae (diff)
downloadpostgresql-82e801852274e46492b0e160624a850157c677e4.tar.gz
postgresql-82e801852274e46492b0e160624a850157c677e4.zip
Teach pg_ls_dir_files() to ignore ENOENT failures from stat().
Buildfarm experience shows that this function can fail with ENOENT if some other process unlinks a file between when we read the directory entry and when we try to stat() it. The problem is old but we had not noticed it until 085b6b667 added regression test coverage. To fix, just ignore ENOENT failures. There is one other case that this might hide: a symlink that points to nowhere. That seems okay though, at least better than erroring. Back-patch to v10 where this function was added, since the regression test cases were too. Discussion: https://postgr.es/m/20200308173103.GC1357@telsasoft.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions