anchor.diff:  create(zones) ->
       ok = ensure_mnesia_started(),
       case mnesia:create_table(zones,
  -        [{attributes, record_info(fields, zone)},
  -            {record_name, zone},
  -            {disc_copies, [node()]}]) of
  +                             [{attributes, record_info(fields, zone)},
  +                              {record_name, zone},
  +                              {disc_copies, [node()]}]) of
           {aborted, {already_exists, zones}} ->
               erldns_log:warning("The zone table already exists on node ~p.~n",
  -                [node()]),
  +                               [node()]),
               ok;
           {atomic, ok} ->
               ok;
  
positive.code: foldl(Iterator, _Acc, Table) ->
      Exec = fun() -> mnesia:foldl(Iterator, [], Table) end,
      case mnesia:is_transaction() of
      true ->
          Exec();
      false ->
          mnesia:activity(transaction, Exec)
      end.
  
  %% @doc Clear all objects from given table in mnesia DB.
  
negative.code:             {error, Error}
      end;
  delete(Table, Key)->
      case mnesia:is_transaction() of
          true ->
              Delete = fun() -> mnesia:delete({Table, Key}) end,
              mnesia:activity(transaction, Delete);
          false ->
              case mnesia:dirty_delete({Table, Key}) of
                  ok ->
                      ok;
                  Error ->
                      {error, Error}
              end
      end.
  
  