Maintenance mode state: don't force a local replica on boot

It breaks forced node removal in some tricky scenarios
because node schemas do not match, and Mnesia is sensitive to this.
This commit is contained in:
Michael Klishin 2022-05-08 21:34:10 +04:00
parent 2d6964d89e
commit a633312450
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ boot() ->
try
_ = rabbit_table:create(
TableName,
status_table_definition()),
_ = rabbit_table:ensure_table_copy(TableName, node())
status_table_definition())
catch throw:Reason ->
rabbit_log:error(
"Failed to create maintenance status table: ~p",