mirror of https://github.com/citusdata/citus.git
Fix bug on error check for assigning distributed transaction id
to a backend that has already been assigned a transaction.pull/1514/head
parent
5923334114
commit
58faffa42b
|
@ -92,7 +92,7 @@ assign_distributed_transaction_id(PG_FUNCTION_ARGS)
|
|||
SpinLockAcquire(&MyBackendData->mutex);
|
||||
|
||||
/* if an id is already assigned, release the lock and error */
|
||||
if (MyBackendData->transactionId.initiatorNodeIdentifier != 0)
|
||||
if (MyBackendData->transactionId.transactionNumber != 0)
|
||||
{
|
||||
SpinLockRelease(&MyBackendData->mutex);
|
||||
|
||||
|
|
Loading…
Reference in New Issue