Skip to content

Commit

Permalink
[ISSUE #2308]🚀Add some method for SelectMappedBufferResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm committed Jan 17, 2025
1 parent 6c1e9b8 commit 0093a0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rocketmq-store/src/base/select_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ impl SelectMappedBufferResult {
}
}
}

pub fn release(&mut self) {
if let Some(mapped_file) = self.mapped_file.take() {
mapped_file.release()
}
}

Check warning on line 84 in rocketmq-store/src/base/select_result.rs

View check run for this annotation

Codecov / codecov/patch

rocketmq-store/src/base/select_result.rs#L80-L84

Added lines #L80 - L84 were not covered by tests
}

0 comments on commit 0093a0f

Please sign in to comment.