Avoid unintentional matching here

This commit is contained in:
Michael Klishin 2021-02-09 20:32:00 +03:00
parent f177a12cca
commit 686d462035
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ transfer_leadership(Q, Destination) ->
case wait_for_new_master(QName, Destination) of
not_migrated ->
{not_migrated, undefined};
{{not_migrated, Destination} = Result, Q} ->
{{not_migrated, Destination} = Result, _Q1} ->
Result;
{Result, NewQ} ->
update_mirrors(NewQ),
@ -599,7 +599,7 @@ migrate_leadership_to_existing_replica(Q, Destination) ->
case wait_for_new_master(QName, Destination) of
not_migrated ->
{not_migrated, undefined};
{{not_migrated, Destination} = Result, Q} ->
{{not_migrated, Destination} = Result, _Q1} ->
Result;
{Result, NewQ} ->
update_mirrors(NewQ),