Merge pull request #1514 from citusdata/fix_assigned_tx_bug

Fix bug on error check for assigning distributed transaction id
pull/1495/head
Önder Kalacı 2017-07-25 15:41:34 +03:00 committed by GitHub
commit b04aa9bf85
1 changed files with 1 additions and 1 deletions

View File

@ -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);