8000 Disable DDD · postgrespro/postgres_cluster@27bba5c · GitHub
[go: up one dir, main page]

Skip to content

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

Provide feedback

8000

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 27bba5c

Browse files
committed
Disable DDD
1 parent 2caa635 commit 27bba5c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

contrib/mmts/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
static void MtmWakeUpBackend(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

contrib/mmts/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
static bool
512512
MtmIsUserTransaction()
513513
{
514-
return IsNormalProcessingMode() && MtmDoReplication && !am_walsender && !IsBackgroundWorker && !IsAutoVacuumWorkerProcess();
514+
return !IsAutoVacuumLauncherProcess() && IsNormalProcessingMode() && MtmDoReplication && !am_walsender && !IsBackgroundWorker && !IsAutoVacuumWorkerProcess();
515515
}
516516

517517
static void
@@ -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
int size;
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)
0