Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 73cce16

Browse files
committed
Fix bug in WAL replay of COMMIT_TS_SETTS record.
Previously the WAL replay of COMMIT_TS_SETTS record called TransactionTreeSetCommitTsData() with the argument write_xlog=true, which generated and wrote new COMMIT_TS_SETTS record. This should not be acceptable because it's during recovery. This commit fixes the WAL replay of COMMIT_TS_SETTS record so that it calls TransactionTreeSetCommitTsData() with write_xlog=false and doesn't generate new WAL during recovery. Back-patch to all supported branches. Reported-by: lx zou <zoulx1982@163.com> Author: Fujii Masao Reviewed-by: Alvaro Herrera Discussion: https://postgr.es/m/16931-620d0f2fdc6108f1@postgresql.org
1 parent beac4bd commit 73cce16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/commit_ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ commit_ts_redo(XLogReaderState *record)
10241024
subxids = NULL;
10251025

10261026
TransactionTreeSetCommitTsData(setts->mainxid, nsubxids, subxids,
1027-
setts->timestamp, setts->nodeid, true);
1027+
setts->timestamp, setts->nodeid, false);
10281028
if (subxids)
10291029
pfree(subxids);
10301030
}

0 commit comments

Comments
 (0)