Clear CurrentResourceOwner earlier in CommitTransaction.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Clear CurrentResourceOwner earlier in CommitTransaction. Alexander reported a crash with repeated create + drop database, after the ResourceOwner rewrite (commit b8bff07daa). That was fixed by the previous commit, but it nevertheless seems like a good idea clear CurrentResourceOwner earlier, because you're not supposed to use it for anything after we start releasing it. Reviewed-by: Alexander Lakhin Discussion: https://www.postgresql.org/message-id/11b70743-c5f3-3910-8e5b-dd6c115ff829%40gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +1 −1 |
Discussion
- ResourceOwner refactoring 91 messages · 2020-11-17 → 2024-06-06