Content-Length: 298045 | pFad | http://github.com/postgrespro/postgres_cluster/commit/6bec9bd75aeb63393a3b01dbe3e5b8f2ad272e37

C6 mm more verbose logs · postgrespro/postgres_cluster@6bec9bd · GitHub
Skip to content

Commit 6bec9bd

Browse files
committed
mm more verbose logs
1 parent 31d659a commit 6bec9bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/mmts/multimaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
925925
* Send notification only if ABORT happens during transaction processing at replicas,
926926
* do not send notification if ABORT is receiver from master
927927
*/
928-
MTM_LOG2("%d: send ABORT notification abort transaction %d to coordinator %d", MyProcPid, x->gtid.xid, x->gtid.node);
928+
MTM_LOG1("%d: send ABORT notification abort transaction %d to coordinator %d", MyProcPid, x->gtid.xid, x->gtid.node);
929929
if (ts == NULL) {
930930
Assert(TransactionIdIsValid(x->xid));
931931
ts = hash_search(MtmXid2State, &x->xid, HASH_ENTER, NULL);
@@ -1380,7 +1380,7 @@ bool MtmRefreshClusterStatus(bool nowait)
13801380
for (ts = Mtm->transListHead; ts != NULL; ts = ts->next) {
13811381
if (!ts->votingCompleted) {
13821382
if (ts->status != TRANSACTION_STATUS_ABORTED) {
1383-
MTM_LOG1("Rollback active transaction %d:%d", ts->gtid.node, ts->gtid.xid);
1383+
MTM_LOG1("1) Rollback active transaction %d:%d:%d", ts->gtid.node, ts->gtid.xid, ts->xid);
13841384
MtmAbortTransaction(ts);
13851385
}
13861386
MtmWakeUpBackend(ts);
@@ -1446,7 +1446,7 @@ void MtmOnNodeDisconnect(int nodeId)
14461446
for (ts = Mtm->transListHead; ts != NULL; ts = ts->next) {
14471447
if (!ts->votingCompleted) {
14481448
if (ts->status != TRANSACTION_STATUS_ABORTED) {
1449-
MTM_LOG1("Rollback active transaction %d:%d", ts->gtid.node, ts->gtid.xid);
1449+
MTM_LOG1("2) Rollback active transaction %d:%d", ts->gtid.node, ts->gtid.xid);
14501450
MtmAbortTransaction(ts);
14511451
}
14521452
MtmWakeUpBackend(ts);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/6bec9bd75aeb63393a3b01dbe3e5b8f2ad272e37

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy