Browse Source

chore(mria): Get rid of copy_mnesia callback

k32 4 years ago
parent
commit
326923850c

+ 0 - 1
apps/emqx/src/emqx_alarm.erl

@@ -26,7 +26,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([post_config_update/4]).
 

+ 0 - 1
apps/emqx/src/emqx_banned.erl

@@ -27,7 +27,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([start_link/0, stop/0]).
 

+ 0 - 1
apps/emqx/src/emqx_router.erl

@@ -28,7 +28,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([start_link/2]).
 

+ 0 - 1
apps/emqx/src/emqx_router_helper.erl

@@ -27,7 +27,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 %% API
 -export([ start_link/0

+ 0 - 1
apps/emqx/src/emqx_shared_sub.erl

@@ -28,7 +28,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 %% APIs
 -export([start_link/0]).

+ 0 - 1
apps/emqx/src/emqx_trie.erl

@@ -22,7 +22,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 %% Trie APIs
 -export([ insert/1

+ 0 - 1
apps/emqx_authn/src/enhanced_authn/emqx_enhanced_authn_scram_mnesia.erl

@@ -46,7 +46,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -record(user_info,
         { user_id

+ 0 - 1
apps/emqx_authn/src/simple_authn/emqx_authn_mnesia.erl

@@ -59,7 +59,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -define(TAB, ?MODULE).
 

+ 0 - 1
apps/emqx_authz/src/emqx_authz_mnesia.erl

@@ -32,7 +32,6 @@
 -endif.
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -spec(mnesia(boot | copy) -> ok).
 mnesia(boot) ->

+ 0 - 1
apps/emqx_dashboard/src/emqx_dashboard_admin.erl

@@ -21,7 +21,6 @@
 -include("emqx_dashboard.hrl").
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 %% Mnesia bootstrap
 -export([mnesia/1]).

+ 0 - 1
apps/emqx_dashboard/src/emqx_dashboard_collection.erl

@@ -25,7 +25,6 @@
 -export([get_local_time/0]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 %% Mnesia bootstrap
 -export([mnesia/1]).

+ 0 - 1
apps/emqx_dashboard/src/emqx_dashboard_token.erl

@@ -28,7 +28,6 @@
         ]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([mnesia/1]).
 

+ 0 - 1
apps/emqx_gateway/src/mqttsn/emqx_sn_registry.erl

@@ -58,7 +58,6 @@
 %-export([mnesia/1]).
 
 %-boot_mnesia({mnesia, [boot]}).
-%-copy_mnesia({mnesia, [copy]}).
 
 %%% @doc Create or replicate tables.
 %-spec(mnesia(boot | copy) -> ok).

+ 0 - 1
apps/emqx_machine/src/emqx_cluster_rpc.erl

@@ -30,7 +30,6 @@
 -endif.
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -include_lib("emqx/include/logger.hrl").
 -include("emqx_machine.hrl").

+ 0 - 1
apps/emqx_modules/src/emqx_delayed.erl

@@ -25,7 +25,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([ start_link/0
         , on_message_publish/1

+ 0 - 1
apps/emqx_modules/src/emqx_telemetry.erl

@@ -30,7 +30,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -export([ start_link/0
         , stop/0

+ 0 - 1
apps/emqx_psk/src/emqx_psk.erl

@@ -47,7 +47,6 @@
 -export([mnesia/1]).
 
 -boot_mnesia({mnesia, [boot]}).
--copy_mnesia({mnesia, [copy]}).
 
 -define(TAB, ?MODULE).
 -define(PSK_SHARD, emqx_psk_shard).