anchor.diff:                               },
       SystemConf.
   
  +
   %% @doc load a system config file. a system config file store to mnesia.
   %% @end
   %% @private
  
positive.code: log_file_appender([], Acc) ->
      lists:reverse(Acc);
  log_file_appender([{Type, _}|T], Acc) when Type == file ->
      log_file_appender(T, [{?LOG_ID_FILE_ERROR, ?LOG_APPENDER_FILE}|[{?LOG_ID_FILE_INFO, ?LOG_APPENDER_FILE}|Acc]]).
  
  
  %% @doc load a system config file
  
negative.code: %% ---------------------------------------------------------------------
  %% @doc Create mnesia tables
  %% @private
  -spec(create_mnesia_tables_1(master | slave, list()) ->
               ok | {error, any()}).
  create_mnesia_tables_1(master = Mode, Nodes) ->
      Nodes_1 = lists:flatten(lists:map(fun({_, N}) -> N end, Nodes)),
      case mnesia:create_schema(Nodes_1) of
          ok ->
              try
                  %% create mnesia's schema
                  rpc:multicall(Nodes_1, application, stop,  [mnesia], ?DEF_TIMEOUT),
                  rpc:multicall(Nodes_1, application, start, [mnesia], ?DEF_TIMEOUT),
  
                  %% create table into the mnesia
                  leo_manager_mnesia:create_system_config(disc_copies, Nodes_1),
                  leo_manager_mnesia:create_storage_nodes(disc_copies, Nodes_1),
                  leo_manager_mnesia:create_gateway_nodes(disc_copies, Nodes_1),
                  leo_manager_mnesia:create_rebalance_info(disc_copies, Nodes_1),
                  leo_manager_mnesia:create_histories(disc_copies, Nodes_1),
                  leo_manager_mnesia:create_available_commands(disc_copies, Nodes_1),
  
                  leo_redundant_manager_table_ring:create_ring_current(disc_copies, Nodes_1),
                  leo_redundant_manager_table_ring:create_ring_prev(disc_copies, Nodes_1),
                  leo_redundant_manager_table_member:create_members(disc_copies, Nodes_1, ?MEMBER_TBL_CUR),
                  leo_redundant_manager_table_member:create_members(disc_copies, Nodes_1, ?MEMBER_TBL_PREV),
  
                  %% Load from system-config and store it into the mnesia
                  {ok, _} = load_system_config_with_store_data(),
  