Skip to content

Commit

Permalink
revert fast path validation
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <chi@neon.tech>
  • Loading branch information
skyzh committed Nov 21, 2024
1 parent 5682c7a commit 9e7fa98
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pageserver/src/deletion_queue/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,6 @@ where
async fn flush(&mut self) -> Result<(), DeletionQueueError> {
tracing::debug!("Flushing with {} pending lists", self.pending_lists.len());

// Fast path to skip validation if we do not have anything to flush.
if self.pending_lists.is_empty()
&& self.validated_lists.is_empty()
&& self.pending_key_count == 0
{
// Fast path: nothing to do
return Ok(());
}

// Issue any required generation validation calls to the control plane
self.validate().await?;

Expand Down

0 comments on commit 9e7fa98

Please sign in to comment.