Skip to content

Commit 4336985

Browse files
XiangpengHaozaidoon1
authored andcommitted
update doc and para name for optimize_for_point_lookup
1 parent 1fb26dd commit 4336985

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/db_options.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1581,9 +1581,12 @@ impl Options {
15811581
}
15821582
}
15831583

1584-
pub fn optimize_for_point_lookup(&mut self, cache_size: u64) {
1584+
// Use this if you don't need to keep the data sorted, i.e. you'll never use
1585+
// an iterator, only Put() and Get() API calls
1586+
//
1587+
pub fn optimize_for_point_lookup(&mut self, block_cache_size_mb: u64) {
15851588
unsafe {
1586-
ffi::rocksdb_options_optimize_for_point_lookup(self.inner, cache_size);
1589+
ffi::rocksdb_options_optimize_for_point_lookup(self.inner, block_cache_size_mb);
15871590
}
15881591
}
15891592

0 commit comments

Comments
 (0)