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

Commitd01fc51

Browse files
committed
Initialize replication_slot_catalog_xmin in procarray
Although not confirmed and probably rare, if the newly allocated memoryis not already zero, this could possibly have caused some problems.Also reorder the initializations slightly so they match the order of thestruct definition.Author: Wong, Yi Wen <yiwong@amazon.com>Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
1 parentdce90c7 commitd01fc51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/storage/ipc/procarray.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,14 @@ CreateSharedProcArray(void)
239239
*/
240240
procArray->numProcs=0;
241241
procArray->maxProcs=PROCARRAY_MAXPROCS;
242-
procArray->replication_slot_xmin=InvalidTransactionId;
243242
procArray->maxKnownAssignedXids=TOTAL_MAX_CACHED_SUBXIDS;
244243
procArray->numKnownAssignedXids=0;
245244
procArray->tailKnownAssignedXids=0;
246245
procArray->headKnownAssignedXids=0;
247246
SpinLockInit(&procArray->known_assigned_xids_lck);
248247
procArray->lastOverflowedXid=InvalidTransactionId;
248+
procArray->replication_slot_xmin=InvalidTransactionId;
249+
procArray->replication_slot_catalog_xmin=InvalidTransactionId;
249250
}
250251

251252
allProcs=ProcGlobal->allProcs;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp