bgp / stayrtr

RPKI-To-Router server implementation in Go
BSD 3-Clause "New" or "Revised" License
85 stars 13 forks source link

Avoid adding empty deltas to the cache #117

Closed cjeker closed 4 months ago

cjeker commented 4 months ago

Return true or false from AddData(). Returns false and aborts the data addition if there is no change in the delta. Use this to shortcut applyUpdateFromNewState() which prevents sending out notifications for empty deltas.

While detecting no file change for slurm using a hash (#115) prevents this case it still is an extra safety to prevent empty deltas to show up.