anchor.diff:  -include_lib("leo_logger/include/leo_logger.hrl").
   -include_lib("leo_redundant_manager/include/leo_redundant_manager.hrl").
   -include_lib("stdlib/include/qlc.hrl").
  +
  +-define(TBL_STORAGE_NODES,  'leo_storage_nodes').
  +-define(TBL_GATEWAY_NODES,  'leo_gateway_nodes').
  +-define(TBL_SYSTEM_CONF,    'leo_system_conf').
  +-define(TBL_REBALANCE_INFO, 'leo_rebalance_info').
  +-define(TBL_HISTORIES,      'leo_histories').
  +
   
   %% API
   -export([create_storage_nodes/2,
  
positive.code:              {ok, list()} | not_found | {error, any()}).
  get_histories_all() ->
      F = fun() ->
                  Q1 = qlc:q([X || X <- mnesia:table(histories)]),
                  Q2 = qlc:sort(Q1, [{order, ascending}]),
                  qlc:e(Q2)
          end,
  
negative.code: -spec(update_storage_node_status(update | update_state | keep_state | update_chksum | increment_error | init_error, atom()) ->
               ok | {error, any()}).
  update_storage_node_status(update, NodeState) ->
      F = fun()-> mnesia:write(?TBL_STORAGE_NODES, NodeState, write) end,
      leo_mnesia:write(F);
  
  update_storage_node_status(update_state, NodeState) ->
  