Minor fix for EventCacheLookup()

Started by Amit Langotealmost 9 years ago2 messageshackers
Jump to latest
#1Amit Langote
Langote_Amit_f8@lab.ntt.co.jp

It should return NIL when no entry is found in the cache, not NULL.

Attached patch fixes that.

Thanks,
Amit

Attachments:

EventCacheLookup-return-NIL.patchtext/plain; charset=UTF-8; name=EventCacheLookup-return-NIL.patchDownload+1-1
#2Robert Haas
robertmhaas@gmail.com
In reply to: Amit Langote (#1)
Re: Minor fix for EventCacheLookup()

On Tue, Jun 6, 2017 at 12:24 AM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:

It should return NIL when no entry is found in the cache, not NULL.

Attached patch fixes that.

I'm not sure how much value neatnik-ism has in cases like this, but committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers