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

Commit1a90ccc

Browse files
committed
mm more verbose logs
1 parent4d6d264 commit1a90ccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎multimaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
924924
* Send notification only if ABORT happens during transaction processing at replicas,
925925
* do not send notification if ABORT is received from master
926926
*/
927-
MTM_LOG2("%d: send ABORT notification abort transaction %d to coordinator %d",MyProcPid,x->gtid.xid,x->gtid.node);
927+
MTM_LOG1("%d: send ABORT notification abort transaction %d to coordinator %d",MyProcPid,x->gtid.xid,x->gtid.node);
928928
if (ts==NULL) {
929929
Assert(TransactionIdIsValid(x->xid));
930930
ts=hash_search(MtmXid2State,&x->xid,HASH_ENTER,NULL);
@@ -1379,7 +1379,7 @@ bool MtmRefreshClusterStatus(bool nowait)
13791379
for (ts=Mtm->transListHead;ts!=NULL;ts=ts->next) {
13801380
if (!ts->votingCompleted&&MtmIsCoordinator(ts)) {
13811381
if (ts->status!=TRANSACTION_STATUS_ABORTED) {
1382-
MTM_LOG1("Rollback active transaction %d:%d",ts->gtid.node,ts->gtid.xid);
1382+
MTM_LOG1("1)Rollback active transaction %d:%d:%d",ts->gtid.node,ts->gtid.xid,ts->xid);
13831383
MtmAbortTransaction(ts);
13841384
}
13851385
MtmWakeUpBackend(ts);
@@ -1445,7 +1445,7 @@ void MtmOnNodeDisconnect(int nodeId)
14451445
for (ts=Mtm->transListHead;ts!=NULL;ts=ts->next) {
14461446
if (!ts->votingCompleted&&MtmIsCoordinator(ts)) {
14471447
if (ts->status!=TRANSACTION_STATUS_ABORTED) {
1448-
MTM_LOG1("Rollback active transaction %d:%d",ts->gtid.node,ts->gtid.xid);
1448+
MTM_LOG1("2)Rollback active transaction %d:%d",ts->gtid.node,ts->gtid.xid);
14491449
MtmAbortTransaction(ts);
14501450
}
14511451
MtmWakeUpBackend(ts);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp