Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit438fc4a

Browse files
committed
Fix bug in WAL replay of COMMIT_TS_SETTS record.
Previously the WAL replay of COMMIT_TS_SETTS record calledTransactionTreeSetCommitTsData() 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 recordso that it calls TransactionTreeSetCommitTsData() with write_xlog=falseand doesn't generate new WAL during recovery.Back-patch to all supported branches.Reported-by: lx zou <zoulx1982@163.com>Author: Fujii MasaoReviewed-by: Alvaro HerreraDiscussion:https://postgr.es/m/16931-620d0f2fdc6108f1@postgresql.org
1 parentdf93844 commit438fc4a

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
@@ -1074,7 +1074,7 @@ commit_ts_redo(XLogReaderState *record)
10741074
subxids=NULL;
10751075

10761076
TransactionTreeSetCommitTsData(setts->mainxid,nsubxids,subxids,
1077-
setts->timestamp,setts->nodeid,true);
1077+
setts->timestamp,setts->nodeid,false);
10781078
if (subxids)
10791079
pfree(subxids);
10801080
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp