anchor.diff:           terminate/2, code_change/3]).
   
   -record(sync_state, {timeout = ?DEF_RING_SYNC_INTERVAL :: non_neg_integer()}).
  --define(SVR_STORAGE, 'storage').
  --define(SVR_GATEWAY, 'gateway').
  +-define(SVR_STORAGE,   'storage').
  +-define(SVR_GATEWAY,   'gateway').
  +-define(SVR_MGR_SLAVE, 'manager_slave').
   
   
   %%--------------------------------------------------------------------
  
positive.code:                   true  -> leo_hex:integer_to_hex(OrgC2, 8);
                    false -> OrgC2
                end,
      sync_ring_1(Nodes_1, {OrgC1_1, OrgC2_1}, ServerType);
  sync_ring(_,_) ->
      ok.
  
  %% @private
  sync_ring_1([],_,_) ->
  
negative.code: handle_info(timeout, State=#sync_state{timeout = Timeout}) ->
      ok = sync_ring(leo_manager_mnesia:get_storage_nodes_all(), ?SVR_STORAGE),
      ok = sync_ring(leo_manager_mnesia:get_gateway_nodes_all(), ?SVR_GATEWAY),
      case ?env_mode_of_manager() of
          'master' ->
              case ?env_partner_of_manager_node() of
                  [] ->
                      ok;
                  [SlaveNode|_] ->
                      sync_ring(SlaveNode)
              end;
          _ ->
              ok
      end,
      {noreply, State, Timeout}.
  
  terminate(_Reason, _State) ->
  