Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 45a33b4

Browse files
committed
2 parents 271b148 + f9582c6 commit 45a33b4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3301,7 +3301,7 @@ MtmDetectGlobalDeadLock(PGPROC* proc)
33013301

33023302
ByteBufferAlloc(&buf);
33033303
EnumerateLocks(MtmSerializeLock, &buf);
3304-
RaftableSet(psprintf("lock-graph-%d", MtmNodeId), buf.data, buf.used, true);
3304+
RaftableSet(psprintf("lock-graph-%d", MtmNodeId), buf.data, buf.used, false);
33053305
MtmGraphInit(&graph);
33063306
MtmGraphAdd(&graph, (GlobalTransactionId*)buf.data, buf.used/sizeof(GlobalTransactionId));
33073307
ByteBufferFree(&buf);

contrib/mmts/pglogical_apply.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ process_remote_commit(StringInfo in)
525525
{
526526
case PGLOGICAL_COMMIT:
527527
{
528-
MTM_LOG1("%d: PGLOGICAL_COMMIT commit", MyProcPid);
528+
MTM_LOG2("%d: PGLOGICAL_COMMIT commit", MyProcPid);
529529
if (IsTransactionState()) {
530530
Assert(TransactionIdIsValid(MtmGetCurrentTransactionId()));
531531
MtmBeginSession();
@@ -542,7 +542,7 @@ process_remote_commit(StringInfo in)
542542
AbortCurrentTransaction();
543543
} else {
544544
/* prepare TBLOCK_INPROGRESS state for PrepareTransactionBlock() */
545-
MTM_LOG1("%ld: PGLOGICAL_PREPARE commit: gid=%s", MtmGetSystemTime(), gid);
545+
MTM_LOG2("%ld: PGLOGICAL_PREPARE commit: gid=%s", MtmGetSystemTime(), gid);
546546
BeginTransactionBlock();
547547
CommitTransactionCommand();
548548
StartTransactionCommand();
@@ -568,7 +568,7 @@ process_remote_commit(StringInfo in)
568568
Assert(!TransactionIdIsValid(MtmGetCurrentTransactionId()));
569569
csn = pq_getmsgint64(in);
570570
gid = pq_getmsgstring(in);
571-
MTM_LOG1("%ld: PGLOGICAL_COMMIT_PREPARED commit: csn=%ld, gid=%s", MtmGetSystemTime(), csn, gid);
571+
MTM_LOG2("%ld: PGLOGICAL_COMMIT_PREPARED commit: csn=%ld, gid=%s", MtmGetSystemTime(), csn, gid);
572572
StartTransactionCommand();
573573
MtmBeginSession();
574574
MtmSetCurrentTransactionCSN(csn);
@@ -581,7 +581,7 @@ process_remote_commit(StringInfo in)
581581
{
582582
Assert(!TransactionIdIsValid(MtmGetCurrentTransactionId()));
583583
gid = pq_getmsgstring(in);
584-
MTM_LOG1("%ld: PGLOGICAL_ABORT_PREPARED commit: gid=%s", MtmGetSystemTime(), gid);
584+
MTM_LOG2("%ld: PGLOGICAL_ABORT_PREPARED commit: gid=%s", MtmGetSystemTime(), gid);
585585
if (MtmExchangeGlobalTransactionStatus(gid, TRANSACTION_STATUS_ABORTED) ==TRANSACTION_STATUS_UNKNOWN) {
586586
MTM_LOG1("%ld: PGLOGICAL_ABORT_PREPARED commit: gid=%s #2", MtmGetSystemTime(), gid);
587587
StartTransactionCommand();

contrib/mmts/pglogical_proto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ pglogical_write_commit(StringInfo out, PGLogicalOutputData *data,
161161
}
162162
pq_sendbyte(out, 'C'); /* sending COMMIT */
163163

164-
MTM_LOG1("%ld: PGLOGICAL_SEND commit: event=%d, gid=%s, commit_lsn=%lx, txn->end_lsn=%lx, xlog=%lx", MtmGetSystemTime(), flags, txn->gid, commit_lsn, txn->end_lsn, GetXLogInsertRecPtr());
164+
MTM_LOG2("%ld: PGLOGICAL_SEND commit: event=%d, gid=%s, commit_lsn=%lx, txn->end_lsn=%lx, xlog=%lx", MtmGetSystemTime(), flags, txn->gid, commit_lsn, txn->end_lsn, GetXLogInsertRecPtr());
165165

166166
/* send the flags field */
167167
pq_sendbyte(out, flags);

0 commit comments

Comments
 (0)