Re: dsm_unpin_segment - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: dsm_unpin_segment
Date
Msg-id CAA4eK1J-9At74-66CxjYO56hMkLShhnmZ4N3DE5UOR-JV-VVsA@mail.gmail.com
Whole thread Raw
In response to Re: dsm_unpin_segment  (Thomas Munro <thomas.munro@enterprisedb.com>)
Responses Re: dsm_unpin_segment  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Mon, Aug 22, 2016 at 6:06 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> On Tue, Aug 23, 2016 at 12:07 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> + int control_slot = -1;
>> ...
>> + if (control_slot == -1)
>> + elog(ERROR, "cannot unpin unknown segment handle");
>>
>> Isn't it better to use INVALID_CONTROL_SLOT for control_slot and use
>> datatype as uint32 (same is used for dsm_segment->control_slot and
>> nitems)?
>
> Yes, it is better.  New version attached.
>

This version of patch looks good to me.  I have marked it as Ready For
Committer.


-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Tracking wait event for latches
Next
From: Michael Paquier
Date:
Subject: Re: improved DefElem list processing