anchor.diff:                                       end
                                end, false, PartnerNodes) of
                   true ->
  -                    create_mnesia_tables1(Mode, RedundantNodes);
  +                    create_mnesia_tables_1(Mode, RedundantNodes);
                   false ->
                       timer:apply_after(?CHECK_INTERVAL, ?MODULE,
                                         create_mnesia_tables, [Mode, RedundantNodes])
  
positive.code: %% ---------------------------------------------------------------------
  %% @doc Create mnesia tables
  %% @private
  -spec(create_mnesia_tables1(master | slave, list()) ->
               ok | {error, any()}).
  create_mnesia_tables1(master = Mode, Nodes0) ->
      Nodes1 = lists:flatten(lists:map(fun({_, N}) -> N end, Nodes0)),
      case mnesia:create_schema(Nodes1) of
          ok ->
              try
                  %% create mnesia's schema
                  rpc:multicall(Nodes1, application, stop,  [mnesia], ?DEF_TIMEOUT),
                  rpc:multicall(Nodes1, application, start, [mnesia], ?DEF_TIMEOUT),
  
                  %% create table into the mnesia
                  leo_manager_mnesia:create_system_config(disc_copies, Nodes1),
                  leo_manager_mnesia:create_storage_nodes(disc_copies, Nodes1),
                  leo_manager_mnesia:create_gateway_nodes(disc_copies, Nodes1),
                  leo_manager_mnesia:create_rebalance_info(disc_copies, Nodes1),
                  leo_manager_mnesia:create_histories(disc_copies, Nodes1),
                  leo_manager_mnesia:create_available_commands(disc_copies, Nodes1),
  
                  leo_redundant_manager_table_ring:create_ring_current(disc_copies, Nodes1),
                  leo_redundant_manager_table_ring:create_ring_prev(disc_copies, Nodes1),
                  leo_redundant_manager_table_member:create_members(disc_copies, Nodes1, ?MEMBER_TBL_CUR),
                  leo_redundant_manager_table_member:create_members(disc_copies, Nodes1, ?MEMBER_TBL_PREV),
  
                  %% Load from system-config and store it into the mnesia
                  {ok, _} = load_system_config_with_store_data(),
  
negative.code:                              },
      SystemConf.
  
  
  %% @doc load a system config file. a system config file store to mnesia.
  %% @end
  %% @private
  