anchor.diff:        end
     end.
   
  -update_zone_records_and_digest(ZoneName, Records, Digest) ->
  -  case find_zone_in_cache(erldns:normalize_name(ZoneName)) of
  -	{ok, Zone} -> Zone,
  -   		UpdatedZone = Zone#zone{version = Digest, 
  -					authority = get_records_by_name_and_type(ZoneName, ?DNS_TYPE_SOA),	
  -					record_count = length(Records),
  -				        records_by_name = build_named_index(Records)}, 
  -   		put_zone(Zone#zone.name, UpdatedZone);
  -	_ -> {error, zone_not_found}
  -  end.
  -
   %% @doc Get a zone for the specific name. This function will not attempt to resolve
   %% the dname in any way, it will simply look up the name in the underlying data store.
   -spec get_zone(dns:dname()) -> {ok, #zone{}} | {error, zone_not_found}.
  
positive.code:         N when CurrentCounter > N ->
            lager:debug("Not processing delete operation for RRSet (~p): counter (~p) provided is lower than system", [RRFqdn, Counter])
        end;
      _ -> {error, zone_not_found}
    end.
  
  
negative.code:   end.
  
  %% @doc Check if the record name is in the zone. Will also return true if a wildcard is present at the node.
  -spec record_name_in_zone(binary(), dns:dname()) -> boolean().
  record_name_in_zone(ZoneName, Name) ->
    case find_zone_in_cache(Name) of
      {ok, Zone} ->
  