git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a859e64) | patch
reorderbuffer: preserve errno while reporting error
2016年8月19日 17:38:55 +0000 (14:38 -0300)
2016年8月19日 17:38:55 +0000 (14:38 -0300)
commit 6f79ae7fe549bed8bbd1f54ddd9b98f8f9a315f5
reorderbuffer: preserve errno while reporting error

Clobbering errno during cleanup after an error is an oft-repeated, easy
to make mistake. Deal with it here as everywhere else, by saving it
aside and restoring after cleanup, before ereport'ing.

In passing, add a missing errcode declaration in another ereport() call
in the same file, which I noticed while skimming the file looking for
similar problems.

Backpatch to 9.4, where this code was introduced.
src/backend/replication/logical/reorderbuffer.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /