On 30 sep 2013, at 14:36, Dick Franks via RT <bug-Net-DNS@rt.cpan.org> wrote:
Show quoted text> But your patch modifies packet->decode(), which is the wrong place to do it.
>
> The semantic of each section is different, so uniqueness can never stretch across more than one section. The obvious failing case being:
>
> $update->push( pre => yxrrset('foo.example 600 A 192.0.2.1') );
> $update->unique_push( upd => rr_add('foo.example 3600 A 192.0.2.1') );
>
As I understood the code, that distinction wasn't made before, and I was going for the smallest necessary change. It's quite possible that I misunderstood. As for the functionality, you are of course quite right.
Show quoted text> However, your idea that unique_push() should take account of what is already there is not unreasonable. Proper solution is already on SVN trunk.
Yes, I see it now. Thank you. I don't see tests for it in the commit, so I'm trying to attach a small patch with some to this email. Not sure what the email gateway will do to it, but I'll guess we'll see.
--
Calle Dybedahl
calle@init.se -*- +46 703 - 970 612