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

Commit89cd7eb

Browse files
committed
Merge branch 'PGPROEE9_6_MULTIMASTER' into PGPROEE9_6
2 parentsb0ba21c +8ad6794 commit89cd7eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5119,7 +5119,7 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
51195119
}
51205120

51215121
/* XXX: dirty. Clear on new tx */
5122-
if (!skipCommand&& (context==PROCESS_UTILITY_TOPLEVEL||MtmUtilityProcessedInXid!=GetCurrentTransactionId()))
5122+
if (!skipCommand&& (context!=PROCESS_UTILITY_SUBCOMMAND||MtmUtilityProcessedInXid!=GetCurrentTransactionId()))
51235123
MtmUtilityProcessedInXid=InvalidTransactionId;
51245124

51255125
if (!skipCommand&& !MtmTx.isReplicated&& (MtmUtilityProcessedInXid==InvalidTransactionId)) {

‎contrib/mmts/pglogical_apply.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ process_remote_message(StringInfo s)
403403
if (rc<0) {
404404
MTM_ELOG(ERROR,"Failed to execute utility statement %s",messageBody);
405405
}else {
406+
MemoryContextSwitchTo(MtmApplyContext);
406407
PushActiveSnapshot(GetTransactionSnapshot());
407408

408409
if (MtmVacuumStmt!=NULL) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp