Skip to content

Commit

Permalink
[ISSUE #2308]🚀Add some method for SelectMappedBufferResult (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 17, 2025
1 parent 6c1e9b8 commit 3049e47
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()
}
}
}

0 comments on commit 3049e47

Please sign in to comment.