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

Commitc8ac9e4

Browse files
knizhnikkelvich
authored andcommitted
Disable DDD
1 parente12b5b4 commitc8ac9e4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎arbiter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ static void MtmTransSender(Datum arg)
529529

530530
staticvoidMtmWakeUpBackend(MtmTransState*ts)
531531
{
532-
ts->voteCompleted= true;
532+
ts->voteCompleted= true;
533+
MTM_TRACE("Wakeup backed procno=%d, pid=%d\n",ts->procno,ProcGlobal->allProcs[ts->procno].pid);
533534
SetLatch(&ProcGlobal->allProcs[ts->procno].procLatch);
534535
}
535536

‎multimaster.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ MtmXactCallback(XactEvent event, void *arg)
511511
staticbool
512512
MtmIsUserTransaction()
513513
{
514-
returnIsNormalProcessingMode()&&MtmDoReplication&& !am_walsender&& !IsBackgroundWorker&& !IsAutoVacuumWorkerProcess();
514+
return!IsAutoVacuumLauncherProcess()&&IsNormalProcessingMode()&&MtmDoReplication&& !am_walsender&& !IsBackgroundWorker&& !IsAutoVacuumWorkerProcess();
515515
}
516516

517517
staticvoid
@@ -525,6 +525,7 @@ MtmBeginTransaction(MtmCurrentTrans* x)
525525
if (x->isDistributed&&dtm->status!=MTM_ONLINE) {
526526
/* reject all user's transactions at offline cluster */
527527
MtmUnlock();
528+
Assert(dtm->status==MTM_ONLINE);
528529
elog(ERROR,"Multimaster node is not online: current status %s",MtmNodeStatusMnem[dtm->status]);
529530
}
530531
x->containsDML= false;
@@ -1765,7 +1766,7 @@ MtmDetectGlobalDeadLock(PGPROC* proc)
17651766
intsize;
17661767
void*data=PaxosGet(psprintf("lock-graph-%d",i+1),&size,NULL, true);
17671768
if (data==NULL) {
1768-
hasDeadlock= true;/* Just temporary hack until no Paxos */
1769+
return true;/* Just temporary hack until no Paxos */
17691770
}else {
17701771
MtmGraphAdd(&graph, (GlobalTransactionId*)data,size/sizeof(GlobalTransactionId));
17711772
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp