From 641ca994dc519e94336f46eb25283145f389af11 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 25 May 2023 09:55:32 +0200 Subject: [PATCH] assert_eq suggestion --- pageserver/src/tenant.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index c713bc0ca2..f58fc138ee 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -1675,8 +1675,9 @@ impl Tenant { } self.state.send_modify(move |current_state| { - assert!( - *current_state == TenantState::Activating, + assert_eq!( + *current_state, + TenantState::Activating, "set_stopping and set_broken wait for us to leave Activating state", ); *current_state = TenantState::Active;