anchor.diff:                      timer:apply_after(?CHECK_INTERVAL, ?MODULE,
                                         create_mnesia_tables, [Mode, ReplicaNodes_2]);
                   _ ->
  -                    create_mnesia_tables_2()
  +                    create_mnesia_tables_2(Mode, ReplicaNodes_2)
               end,
               {ok, Pid};
           Error ->
  
positive.code:                     false ->
                          void
                  end,
                  create_mnesia_tables_2()
              catch _:Reason ->
                      ?error("create_mnesia_tables_1/2", "cause:~p", [Reason])
              end,
              ok;
          {error,{_,{already_exists, _}}} ->
              create_mnesia_tables_2();
          {_, Cause} ->
              timer:apply_after(?CHECK_INTERVAL, ?MODULE, create_mnesia_tables, [Mode, Nodes]),
              ?error("create_mnesia_tables_1/2", "cause:~p", [Cause]),
              {error, Cause}
      end;
  create_mnesia_tables_1(slave,_Nodes) ->
      create_mnesia_tables_2().
  
  %% @doc Create mnesia tables and execute to migrate data
  %% @private
  -spec(create_mnesia_tables_2() ->
               ok | {error, any()}).
  create_mnesia_tables_2() ->
      application:start(mnesia),
      case catch mnesia:system_info(tables) of
          Tbls when length(Tbls) > 1 ->
              ok = mnesia:wait_for_tables(Tbls, 60000),
  
              %% Execute to migrate data
              catch leo_manager_transformer:transform(),
              leo_manager_api:update_mdc_items_in_system_conf(),
              ok;
          Tbls when length(Tbls) =< 1 ->
              {error, no_exists};
  
negative.code:             Error
      end.
  
  %% @doc Function migrating datas 
  %%      Should be called on the leo_manager master after all partner nodes finished initialization processes
  %%
  -spec(migrate_mnesia_tables(list()) ->
               ok | {error, any()}).
  migrate_mnesia_tables(Nodes) ->
      try
          leo_manager_transformer:transform(),
          leo_manager_api:update_mdc_items_in_system_conf()
      catch _:Cause ->
          ?error("migrate_mnesia_tables/1", "cause:~p", [Cause]),
          timer:apply_after(?CHECK_INTERVAL_FOR_MNESIA, ?MODULE,
                            migrate_mnesia_tables, [Nodes])
      end.
  
  %% @doc Get log-file appender from env
  %% @private
  