Based on offline discussion, we want to change the type of 'chassis' column
in 'Binding' table from string to weak reference of 'Chassis' table entry.

Already sent new patch.

Thanks,
Alex Wang,

On Tue, May 19, 2015 at 9:09 AM, Alex Wang <[email protected]> wrote:

>
>
> On Tue, May 19, 2015 at 8:31 AM, Ben Pfaff <[email protected]> wrote:
>
>> On Mon, May 18, 2015 at 06:58:15PM -0700, Alex Wang wrote:
>> > The 'chassis' member in the 'struct sbrec_binding' must always be
>> > non-null.  However, this is not case when creating the binding
>> > in "set_bindings()".  And it causes segfault while starting northd
>> > with existing ovnnb configuration.
>> >
>> > This commit fixes the bug by always setting the 'chassis' to an
>> > empty string.
>> >
>> > Signed-off-by: Alex Wang <[email protected]>
>>
>> This may not be the best fix.  When the Binding table was introduced,
>> the 'chassis' column could always be populated immediately because the
>> chassis was what added it and thus it could always fill in its own name,
>> so there wasn't any point in allowing the chassis column to be empty.
>> But now that Binding rows are added before we have a chassis, the best
>> fix might be to change the schema to allow 'chassis' to be empty (and
>> then change any references to 'chassis' to no longer assume it must be
>> nonnull).
>>
>> What do you think?
>>
>>
> Thx for the explanation, and makes sense,
>
> I'll make the change,
>
> Thanks,
> Alex Wang,
>
>
>
>> Thanks,
>>
>> Ben.
>>
>
>
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to