anchor.diff:                          element(1, Entry) =/= '$end_of_table'
                   end),
       {atomic, _} = mnesia:transaction(fun() -> mnesia:write({DBName, element(1, Entry), Entry}) end),
  +    mnesia:sync_log(),
       DBName.
   
   %% @doc Returns the entry that corresponds to Key or {} if no such tuple exists.
  
positive.code:         true -> mnesia:foldl(Iterator,[],Table_name);
          false ->
              Exec = fun({Fun,Tab}) -> mnesia:foldl(Fun, [],Tab) end,
              mnesia:activity(transaction,Exec,[{Iterator,Table_name}],mnesia_frag)
      end.
  
negative.code:     true -> mnesia:foldl(Iterator,[],Table_name);
      false ->
        Exec = fun({Fun,Tab}) -> mnesia:foldl(Fun, [],Tab) end,
        mnesia:activity(sync_transaction,Exec,[{Iterator,Table_name}],mnesia_frag)
    end.
  
  %% @doc Return all the tables owned by PidGroup
  