Fix off-by-one bug in XactLogCommitRecord
Alvaro Herrera <alvherre@alvh.no-ip.org>
Fix off-by-one bug in XactLogCommitRecord Commit 1eb6d6527aae introduced zeroed alignment bytes in the GID field of commit/abort WAL records. Fixup commit cf5a1890592b later changed that representation into a regular cstring with a single terminating zero byte, but it also introduced an off-by-one mistake. Fix that. Author: Nikhil Sontakke Reported-by: Nikhil Sontakke Discussion: https://postgr.es/m/CAMGcDxey6dG1DP34_tJMoWPcp5sPJUAL4K5CayUUXLQSx2GQpA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +1 −1 |
Discussion
- pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding 10 messages · 2018-03-28 → 2018-06-20