Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rust-rocksdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangzongwu
rust-rocksdb
Commits
fdf6f7c6
Unverified
Commit
fdf6f7c6
authored
Apr 21, 2021
by
Xinye Tao
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mut quantifiers in option getters (#621)
Signed-off-by:
tabokie
<
xy.tao@outlook.com
>
parent
5abf8854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
rocksdb_options.rs
src/rocksdb_options.rs
+9
-9
No files found.
src/rocksdb_options.rs
View file @
fdf6f7c6
...
@@ -1556,7 +1556,7 @@ impl ColumnFamilyOptions {
...
@@ -1556,7 +1556,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_min_write_buffer_number
(
&
mut
self
)
->
u32
{
pub
fn
get_min_write_buffer_number
(
&
self
)
->
u32
{
unsafe
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
}
}
...
@@ -1568,7 +1568,7 @@ impl ColumnFamilyOptions {
...
@@ -1568,7 +1568,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_max_write_buffer_number
(
&
mut
self
)
->
u32
{
pub
fn
get_max_write_buffer_number
(
&
self
)
->
u32
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_write_buffer_number
(
self
.inner
)
as
u32
}
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_write_buffer_number
(
self
.inner
)
as
u32
}
}
}
...
@@ -1578,7 +1578,7 @@ impl ColumnFamilyOptions {
...
@@ -1578,7 +1578,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_write_buffer_size
(
&
mut
self
)
->
u64
{
pub
fn
get_write_buffer_size
(
&
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_write_buffer_size
(
self
.inner
)
as
u64
}
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_write_buffer_size
(
self
.inner
)
as
u64
}
}
}
...
@@ -1588,7 +1588,7 @@ impl ColumnFamilyOptions {
...
@@ -1588,7 +1588,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_max_bytes_for_level_base
(
&
mut
self
)
->
u64
{
pub
fn
get_max_bytes_for_level_base
(
&
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_bytes_for_level_base
(
self
.inner
)
as
u64
}
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_bytes_for_level_base
(
self
.inner
)
as
u64
}
}
}
...
@@ -1601,7 +1601,7 @@ impl ColumnFamilyOptions {
...
@@ -1601,7 +1601,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_max_bytes_for_level_multiplier
(
&
mut
self
)
->
i32
{
pub
fn
get_max_bytes_for_level_multiplier
(
&
self
)
->
i32
{
unsafe
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_bytes_for_level_multiplier
(
self
.inner
)
as
i32
crocksdb_ffi
::
crocksdb_options_get_max_bytes_for_level_multiplier
(
self
.inner
)
as
i32
}
}
...
@@ -1613,7 +1613,7 @@ impl ColumnFamilyOptions {
...
@@ -1613,7 +1613,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_max_compaction_bytes
(
&
mut
self
)
->
u64
{
pub
fn
get_max_compaction_bytes
(
&
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_compaction_bytes
(
self
.inner
)
}
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_compaction_bytes
(
self
.inner
)
}
}
}
...
@@ -1675,7 +1675,7 @@ impl ColumnFamilyOptions {
...
@@ -1675,7 +1675,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_min_write_buffer_number_to_merge
(
&
mut
self
)
->
u32
{
pub
fn
get_min_write_buffer_number_to_merge
(
&
self
)
->
u32
{
unsafe
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
}
}
...
@@ -1687,7 +1687,7 @@ impl ColumnFamilyOptions {
...
@@ -1687,7 +1687,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_level_zero_file_num_compaction_trigger
(
&
mut
self
)
->
u32
{
pub
fn
get_level_zero_file_num_compaction_trigger
(
&
self
)
->
u32
{
unsafe
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_level0_file_num_compaction_trigger
(
self
.inner
)
as
u32
crocksdb_ffi
::
crocksdb_options_get_level0_file_num_compaction_trigger
(
self
.inner
)
as
u32
}
}
...
@@ -1825,7 +1825,7 @@ impl ColumnFamilyOptions {
...
@@ -1825,7 +1825,7 @@ impl ColumnFamilyOptions {
}
}
}
}
pub
fn
get_force_consistency_checks
(
&
mut
self
)
->
bool
{
pub
fn
get_force_consistency_checks
(
&
self
)
->
bool
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_force_consistency_checks
(
self
.inner
)
}
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_force_consistency_checks
(
self
.inner
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment