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

Commit1ecd0d6

Browse files
knizhnikkelvich
authored andcommitted
Update top memory context
1 parentab441db commit1ecd0d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎pglogical_apply.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ static void process_remote_insert(StringInfo s, Relation rel);
7979
staticvoidprocess_remote_update(StringInfos,Relationrel);
8080
staticvoidprocess_remote_delete(StringInfos,Relationrel);
8181

82-
staticMemoryContextTopContext;
8382
staticboolGucAltered;/* transaction is setting some GUC variables */
8483

8584
/*
@@ -662,7 +661,7 @@ process_remote_commit(StringInfo in)
662661
casePGLOGICAL_PREPARE:
663662
{
664663
Assert(IsTransactionState()&&TransactionIdIsValid(MtmGetCurrentTransactionId()));
665-
gid=pstrdup(pq_getmsgstring(in));/* in case of spilling large transaction to the file, message body will be deallocated, so copy it */
664+
gid=pq_getmsgstring(in);
666665
if (MtmExchangeGlobalTransactionStatus(gid,TRANSACTION_STATUS_IN_PROGRESS)==TRANSACTION_STATUS_ABORTED) {
667666
MTM_LOG1("Avoid prepare of previously aborted global transaction %s",gid);
668667
AbortCurrentTransaction();
@@ -1047,7 +1046,7 @@ void MtmExecutor(void* work, size_t size)
10471046
ALLOCSET_DEFAULT_INITSIZE,
10481047
ALLOCSET_DEFAULT_MAXSIZE);
10491048
}
1050-
TopContext=MemoryContextSwitchTo(MtmApplyContext);
1049+
TopMemoryContext=MemoryContextSwitchTo(MtmApplyContext);
10511050
replorigin_session_origin=InvalidRepOriginId;
10521051
PG_TRY();
10531052
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp