Confusing comment in TransactionIdIsInProgress - Mailing list pgsql-hackers

From Jim Nasby
Subject Confusing comment in TransactionIdIsInProgress
Date
Msg-id 60BA971A-52A4-4A11-9AA1-0839BB6F15A3@nasby.net
Whole thread Raw
Responses Re: Confusing comment in TransactionIdIsInProgress  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List 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/pfreeoverhead. */if (xids == NULL){
 
...    xids = (TransactionId *) malloc(maxxids * sizeof(TransactionId));
--
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SSI patch version 12
Next
From: Charlie Savage
Date:
Subject: MingW + GCC 4.5.2 + Relocate libpq.dll = SegFault