Confusing comment in TransactionIdIsInProgress

From: Jim Nasby <jim(at)nasby(dot)net>
To: pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Confusing comment in TransactionIdIsInProgress
Date: 2011-01-18 05:15:59
Message-ID: 60BA971A-52A4-4A11-9AA1-0839BB6F15A3@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Shouldn't the comment read "If first time through"?

/*
* If not first time through, get workspace to remember main XIDs in. We
* malloc it permanently to avoid repeated palloc/pfree overhead.
*/
if (xids == NULL)
{
...
xids = (TransactionId *) malloc(maxxids * sizeof(TransactionId));
--
Jim C. Nasby, Database Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Itagaki Takahiro 2011-01-18 06:17:12 Re: SQL/MED - file_fdw
Previous Message Tom Lane 2011-01-18 05:09:32 Re: SSI patch version 12