[ovs-dev] [PATCH] ovn: Take advantage of OVSDB garbage collection in OVN_Northbound schema.

Aaron Rosen arosen at vmware.com
Fri Jun 26 22:42:28 UTC 2015


Sounds good, thanks Ben!
________________________________________
From: Ben Pfaff <blp at nicira.com>
Sent: Friday, June 26, 2015 2:50 PM
To: Aaron Rosen
Cc: dev at openvswitch.org
Subject: Re: [PATCH] ovn: Take advantage of OVSDB garbage collection in OVN_Northbound schema.

On Fri, Jun 26, 2015 at 09:35:04PM +0000, Aaron Rosen wrote:
> > In the delete logical_port case we'd just need to delete the port
> > entry and the garbage collector will automatically handle updating the
> > logical_switch.ports with the current ports right?
>
> If this proposed patch is applied, then it's the opposite: if you remove
> the port from Logical_Switch.ports, then the garbage collector will
> automatically delete the Logical_Port object (because there are no
> remaining references to it).
>
>
> arosen - in that case I think we also need something that can ""remove element X from this column
> (regardless of what's currently there)" otherwise we'll have the same problem in the delete case no?

Well, yes, I would provide that feature too, it uses the same mechanism.



More information about the dev mailing list