From dfe85278062947af6fe3e345dd182862e04ded33 Mon Sep 17 00:00:00 2001 From: Alex Chi Date: Tue, 27 Jun 2023 13:52:12 -0400 Subject: [PATCH] remove assertion Signed-off-by: Alex Chi --- pageserver/src/tenant/timeline.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index 0a1c03c72e..e6e5b9c737 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -3357,9 +3357,7 @@ impl Timeline { self.lcache.create_new_layer(l); } - // add this layer to the end of all sorted runs; this is only done when initializing with init_lsn - // for now, and therefore the sorted runs are empty. - assert_eq!(updates.sorted_runs().num_of_tiers(), 0); + // add this layer to the end of all sorted runs updates.sorted_runs().create_new_bottom_run(sorted_run); updates.flush(); drop_wlock(guard);