Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Nov 17, 2023
1 parent bf8fbc9 commit 1f538cf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/wal/src/dummy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ pub struct DoNothing;

#[async_trait]
impl WalManager for DoNothing {
/// Get current sequence number.
async fn sequence_num(&self, _location: WalLocation) -> Result<SequenceNumber> {
Ok(0)
}

/// Mark the entries whose sequence number is in [0, `sequence_number`] to
/// be deleted in the future.
async fn mark_delete_entries_up_to(
&self,
_location: WalLocation,
Expand All @@ -43,17 +40,14 @@ impl WalManager for DoNothing {
Ok(())
}

/// Close a region.
async fn close_region(&self, _region: RegionId) -> Result<()> {
Ok(())
}

/// Close the wal gracefully.
async fn close_gracefully(&self) -> Result<()> {
Ok(())
}

/// Provide iterator on necessary entries according to `ReadRequest`.
async fn read_batch(
&self,
_ctx: &ReadContext,
Expand Down

0 comments on commit 1f538cf

Please sign in to comment.