fix(gcpdev): restore original shard in mnesia tab definition

Changing the shard is not backward compatible, and leads to a crash
when upgrading from 5.2.x.
This commit is contained in:
Andrew Mayorov 2023-10-12 17:30:07 +07:00
parent d9859b6b49
commit 6413afd0bc
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@
-include_lib("emqx/include/logger.hrl"). -include_lib("emqx/include/logger.hrl").
-include_lib("stdlib/include/ms_transform.hrl"). -include_lib("stdlib/include/ms_transform.hrl").
-define(AUTHN_SHARD, ?MODULE). %% NOTE
%% We share the shard with `emqx_auth_mnesia` to ensure backward compatibility
%% with EMQX 5.2.x and earlier.
-define(AUTHN_SHARD, emqx_authn_shard).
%% Management %% Management
-export([put_device/1, get_device/1, remove_device/1]). -export([put_device/1, get_device/1, remove_device/1]).