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

Commit a11fab3

Browse files
knizhnikkelvich
authored andcommitted
Perform global deadlock detection only when cluster is online
1 parent 799bf3c commit a11fab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5715,7 +5715,7 @@ static bool
57155715
MtmDetectGlobalDeadLockForXid(TransactionId xid)
57165716
{
57175717
bool hasDeadlock = false;
5718-
if (TransactionIdIsValid(xid)) {
5718+
if (TransactionIdIsValid(xid) && Mtm->status == MTM_ONLINE) {
57195719
ByteBuffer buf;
57205720
MtmGraph graph;
57215721
GlobalTransactionId gtid;

0 commit comments

Comments
 (0)