fix(ps_router): use `disc_copies` for storing persistent session routes
This commit is contained in:
parent
f2346b2e9a
commit
cae9ae1fab
|
@ -52,7 +52,7 @@ init_tables() ->
|
||||||
ok = mria:create_table(?PS_ROUTER_TAB, [
|
ok = mria:create_table(?PS_ROUTER_TAB, [
|
||||||
{type, bag},
|
{type, bag},
|
||||||
{rlog_shard, ?PS_ROUTER_SHARD},
|
{rlog_shard, ?PS_ROUTER_SHARD},
|
||||||
{storage, ram_copies},
|
{storage, disc_copies},
|
||||||
{record_name, ps_route},
|
{record_name, ps_route},
|
||||||
{attributes, record_info(fields, ps_route)},
|
{attributes, record_info(fields, ps_route)},
|
||||||
{storage_properties, [
|
{storage_properties, [
|
||||||
|
@ -65,7 +65,7 @@ init_tables() ->
|
||||||
ok = mria:create_table(?PS_FILTERS_TAB, [
|
ok = mria:create_table(?PS_FILTERS_TAB, [
|
||||||
{type, ordered_set},
|
{type, ordered_set},
|
||||||
{rlog_shard, ?PS_ROUTER_SHARD},
|
{rlog_shard, ?PS_ROUTER_SHARD},
|
||||||
{storage, ram_copies},
|
{storage, disc_copies},
|
||||||
{record_name, ps_routeidx},
|
{record_name, ps_routeidx},
|
||||||
{attributes, record_info(fields, ps_routeidx)},
|
{attributes, record_info(fields, ps_routeidx)},
|
||||||
{storage_properties, [
|
{storage_properties, [
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
-dialyzer({nowarn_function, storage/0}).
|
-dialyzer({nowarn_function, storage/0}).
|
||||||
|
|
||||||
-export([start/2]).
|
-export([start/2, storage/0]).
|
||||||
|
|
||||||
-include("emqx_ds_int.hrl").
|
-include("emqx_ds_int.hrl").
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue