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

Commitacf1830

Browse files
knizhnikkelvich
authored andcommitted
Restpore assert in arbiter on receiving PREPARE in aborted state
1 parente4ceec5 commitacf1830

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

‎arbiter.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,17 @@ static void MtmTransReceiver(Datum arg)
915915
}else {
916916
switch (msg->code) {
917917
caseMSG_PREPARE:
918-
if (ts->status==TRANSACTION_STATUS_IN_PROGRESS) {
919-
ts->status=TRANSACTION_STATUS_UNKNOWN;
920-
ts->csn=MtmAssignCSN();
921-
MtmAdjustSubtransactions(ts);
922-
MtmSendNotificationMessage(ts,MSG_PREPARED);
918+
Assert(ts->status==TRANSACTION_STATUS_IN_PROGRESS);
919+
ts->status=TRANSACTION_STATUS_UNKNOWN;
920+
ts->csn=MtmAssignCSN();
921+
MtmAdjustSubtransactions(ts);
922+
MtmSendNotificationMessage(ts,MSG_PREPARED);
923+
#if0
923924
}else {
924925
Assert(ts->status==TRANSACTION_STATUS_ABORTED);
925926
MtmSendNotificationMessage(ts,MSG_ABORTED);
926927
}
928+
#endif
927929
break;
928930
default:
929931
Assert(false);

‎multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ void MtmWatchdog(void)
797797
if (Mtm->nodes[i].lastHeartbeat!=0
798798
&&now>Mtm->nodes[i].lastHeartbeat+MSEC_TO_USEC(MtmHeartbeatRecvTimeout))
799799
{
800-
elog(WARNING,"Heartbeatwas received from node %d during %d msec",
800+
elog(WARNING,"Heartbeatis not received from node %d during %d msec",
801801
i+1, (int)USEC_TO_MSEC(now-Mtm->nodes[i].lastHeartbeat));
802802
MtmOnNodeDisconnect(i+1);
803803
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp