Explorar el Código

chore(dsraft): apply code review suggestions

Co-authored-by: ieQu1 <99872536+ieQu1@users.noreply.github.com>
Andrew Mayorov hace 1 año
padre
commit
ea6aa34c69

+ 1 - 1
apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer_meta.erl

@@ -769,7 +769,7 @@ file_read_term(Filename) ->
     end.
 
 migrate_site_id(Site) ->
-    case re:run(Site, "^[0-9A-Z]+$") of
+    case re:run(Site, "^[0-9A-F]+$") of
         {match, _} ->
             Site;
         nomatch ->

+ 2 - 1
changes/ee/fix-13731.en.md

@@ -1 +1,2 @@
-Fix inability to upgrade clusters to EMQX 5.8.0 release that were at some point running EMQX 5.4.0 release before. Legacy, no longer compatible database schemas are now accounted for through a dedicated migration process.
+Fix inability to upgrade clusters that previously ran on EMQX 5.4.0 release to EMQX 5.8.0. 
+This fix implements a migration procedure for certain internal database tables created at 5.4.0 to the new schema.