@@ -684,15 +684,15 @@ process_remote_commit(StringInfo in)
684684 {
685685 Assert (!TransactionIdIsValid (MtmGetCurrentTransactionId ()));
686686 strncpy (gid , pq_getmsgstring (in ), sizeof gid );
687- MTM_LOG2 ("%d: PGLOGICAL_PRECOMMIT_PREPARED %s" , MyProcPid , gid );
687+ MTM_LOG2 ("%d: PGLOGICAL_PRECOMMIT_PREPARED %s, (%llx,%llx,%llx) " , MyProcPid , gid , commit_lsn , end_lsn , origin_lsn );
688688 MtmBeginSession (origin_node );
689689 MtmPrecommitTransaction (gid );
690690 MtmEndSession (origin_node , true);
691691 return ;
692692 }
693693 case PGLOGICAL_COMMIT :
694694 {
695- MTM_LOG2 ("%d: PGLOGICAL_COMMIT commit " , MyProcPid );
695+ MTM_LOG2 ("%d: PGLOGICAL_COMMIT %s, (%llx,%llx,%llx) " , MyProcPid , gid , commit_lsn , end_lsn , origin_lsn );
696696 if (IsTransactionState ()) {
697697 Assert (TransactionIdIsValid (MtmGetCurrentTransactionId ()));
698698 MtmBeginSession (origin_node );
@@ -705,12 +705,12 @@ process_remote_commit(StringInfo in)
705705 {
706706 Assert (IsTransactionState () && TransactionIdIsValid (MtmGetCurrentTransactionId ()));
707707 strncpy (gid , pq_getmsgstring (in ), sizeof gid );
708+ MTM_LOG2 ("%d: PGLOGICAL_PREPARE %s, (%llx,%llx,%llx)" , MyProcPid , gid , commit_lsn , end_lsn , origin_lsn );
708709 if (MtmExchangeGlobalTransactionStatus (gid , TRANSACTION_STATUS_IN_PROGRESS ) == TRANSACTION_STATUS_ABORTED ) {
709710 MTM_LOG1 ("Avoid prepare of previously aborted global transaction %s" , gid );
710711 AbortCurrentTransaction ();
711712 } else {
712713 /* prepare TBLOCK_INPROGRESS state for PrepareTransactionBlock() */
713- MTM_LOG2 ("PGLOGICAL_PREPARE commit: gid=%s" , gid );
714714 BeginTransactionBlock (false);
715715 CommitTransactionCommand ();
716716 StartTransactionCommand ();
@@ -745,7 +745,7 @@ process_remote_commit(StringInfo in)
745745 */
746746 Assert (csn );
747747 strncpy (gid , pq_getmsgstring (in ), sizeof gid );
748- MTM_LOG2 ("PGLOGICAL_COMMIT_PREPARED commit: csn=%lld, gid= %s, lsn= %llx" , csn , gid , end_lsn );
748+ MTM_LOG2 ("%d: PGLOGICAL_COMMIT_PREPARED %s, ( %llx,%llx,%llx) " , MyProcPid , gid , commit_lsn , end_lsn , origin_lsn );
749749 MtmResetTransaction ();
750750 StartTransactionCommand ();
751751 MtmBeginSession (origin_node );
0 commit comments