diff --git a/core/storage/pager.rs b/core/storage/pager.rs
index 01843238d..26190232b 100644
--- a/core/storage/pager.rs
+++ b/core/storage/pager.rs
@@ -166,9 +166,12 @@ enum CheckpointState {
/// The mode of allocating a btree page.
pub enum BtreePageAllocMode {
- Any, // allocate any btree page
- Exact(u32), // allocate a specific page number, typically used for root page allocation
- Le(u32), // allocate a page number less than or equal to the parameter
+ /// Allocate any btree page
+ Any,
+ /// Allocate a specific page number, typically used for root page allocation
+ Exact(u32),
+ /// Allocate a page number less than or equal to the parameter
+ Le(u32),
}
/// This will keep track of the state of current cache flush in order to not repeat work
@@ -271,25 +274,24 @@ impl Pager {
}
/// Retrieves the pointer map entry for a given database page.
- /// `db_page_no_to_query` (1-indexed) is the page whose entry is sought.
+ /// `target_page_num` (1-indexed) is the page whose entry is sought.
/// Returns `Ok(None)` if the page is not supposed to have a ptrmap entry (e.g. header, or a ptrmap page itself).
- pub fn ptrmap_get(&self, db_page_no_to_query: u32) -> Result