Fix bug on error check for assigning distributed transaction id

to a backend that has already been assigned a transaction.
pull/1514/head
Onder Kalaci 2017-07-25 13:55:33 +03:00
parent 5923334114
commit 58faffa42b
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);