mirror of https://github.com/citusdata/citus.git
Merge pull request #1514 from citusdata/fix_assigned_tx_bug
Fix bug on error check for assigning distributed transaction idpull/1495/head
commit
b04aa9bf85
|
@ -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