Revert "boe"

This reverts commit 8c66338b8b.
This commit is contained in:
Miek Gieben 2012-12-05 09:27:42 +01:00
parent 8c66338b8b
commit 6359438615
1 changed files with 1 additions and 2 deletions

View File

@ -103,7 +103,7 @@ func NewZoneData(s string) *ZoneData {
zd := new(ZoneData)
zd.Name = s
zd.RR = make(map[uint16][]RR)
zd.Signatures = make(map[uint16](make map[uint16]*RR_RRSIG))
zd.Signatures = make(map[uint16]map[uint16]*RR_RRSIG)
zd.RWMutex = new(sync.RWMutex)
return zd
}
@ -262,7 +262,6 @@ func (z *Zone) Remove(r RR) error {
switch t := r.Header().Rrtype; t {
case TypeRRSIG:
delete(zd.Value.(*ZoneData).Signatures[r.(*RR_RRSIG).TypeCovered], r.(*RR_RRSIG).KeyTag)
// TODO(mg): delete entire node
default:
for i, zr := range zd.Value.(*ZoneData).RR[t] {
// Matching RR