From d38545010a095400563261e39a554286c881272e Mon Sep 17 00:00:00 2001 From: zmstone Date: Mon, 25 Mar 2024 16:42:46 +0100 Subject: [PATCH] fix: case_clause --- apps/emqx/src/emqx_router.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx/src/emqx_router.erl b/apps/emqx/src/emqx_router.erl index f7468fbfa..89bd06352 100644 --- a/apps/emqx/src/emqx_router.erl +++ b/apps/emqx/src/emqx_router.erl @@ -747,14 +747,14 @@ choose_schema_vsn(ConfSchema, ClusterSchema, State) -> [Schema] when ClusterSchema =:= undefined -> %% There are existing records following some schema, we have to use it. Schema; - [v1, v2] when ClusterSchema =/= undefined -> + _Conflicting when ClusterSchema =/= undefined -> %% There are existing records in both v1 and v2 schema, %% we have to use what the peer nodes agreed on. %% because it could be HTIS node which caused cnoflict. %% %% The stale records will be left-over, but harmless ClusterSchema; - [v1, v2] -> + _Conflicting -> Desc = schema_conflict_reason(records, State), io:format(standard_error, "Error: ~ts~n", [Desc]), ?SLOG(critical, #{