mirror of https://github.com/citusdata/citus.git
Allocate enough space for transaction nodes
This fix prevents any potential memory access that might occur while forming the deadlock path.pull/1961/head
parent
9a89c0b425
commit
fbde87d2d0
|
@ -134,7 +134,7 @@ CheckForDistributedDeadlocks(void)
|
|||
{
|
||||
bool deadlockFound = false;
|
||||
List *deadlockPath = NIL;
|
||||
TransactionNode *transactionNodeStack[edgeCount];
|
||||
TransactionNode *transactionNodeStack[edgeCount + 1];
|
||||
|
||||
/* we're only interested in finding deadlocks originating from this node */
|
||||
if (transactionNode->transactionId.initiatorNodeIdentifier != localGroupId)
|
||||
|
|
Loading…
Reference in New Issue