Improve code comment for delete_range_cf (#28087)

#### Summary of Changes
Improve code comment for Blockstore::delete_range_cf esp. for the corner case
where the from Slot and to Slot are the same.
This commit is contained in:
Yueh-Hsuan Chiang 2022-09-27 20:12:08 -07:00 committed by GitHub
parent 84acef007c
commit fb6abac4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1158,7 +1158,10 @@ impl Database {
Ok(fs_extra::dir::get_size(&self.path)?)
}
/// Adds a \[`from`, `to`\] range to delete to the given write batch
/// Adds a \[`from`, `to`\] range that deletes all entries between the `from` slot
/// and `to` slot inclusively. If `from` slot and `to` slot are the same, then all
/// entries in that slot will be removed.
///
pub fn delete_range_cf<C>(&self, batch: &mut WriteBatch, from: Slot, to: Slot) -> Result<()>
where
C: Column + ColumnName,