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
f6cbc107
Commit
f6cbc107
authored
Mar 21, 2017
by
siddontang
Committed by
GitHub
Mar 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless rocksdb API (#26)
parent
b52deee8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
42 deletions
+0
-42
c.cc
librocksdb_sys/crocksdb/c.cc
+0
-20
c.h
librocksdb_sys/crocksdb/rocksdb/c.h
+0
-10
lib.rs
librocksdb_sys/src/lib.rs
+0
-1
main.rs
src/main.rs
+0
-1
rocksdb_options.rs
src/rocksdb_options.rs
+0
-10
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
f6cbc107
...
...
@@ -1480,11 +1480,6 @@ void crocksdb_block_based_options_set_pin_l0_filter_and_index_blocks_in_cache(
options
->
rep
.
pin_l0_filter_and_index_blocks_in_cache
=
v
;
}
void
crocksdb_block_based_options_set_skip_table_builder_flush
(
crocksdb_block_based_table_options_t
*
options
,
unsigned
char
v
)
{
options
->
rep
.
skip_table_builder_flush
=
v
;
}
void
crocksdb_options_set_block_based_table_factory
(
crocksdb_options_t
*
opt
,
crocksdb_block_based_table_options_t
*
table_options
)
{
...
...
@@ -1751,11 +1746,6 @@ void crocksdb_options_set_memtable_insert_with_hint_prefix_extractor(
opt
->
rep
.
memtable_insert_with_hint_prefix_extractor
.
reset
(
prefix_extractor
);
}
void
crocksdb_options_set_disable_data_sync
(
crocksdb_options_t
*
opt
,
int
disable_data_sync
)
{
opt
->
rep
.
disableDataSync
=
disable_data_sync
;
}
void
crocksdb_options_set_use_fsync
(
crocksdb_options_t
*
opt
,
int
use_fsync
)
{
opt
->
rep
.
use_fsync
=
use_fsync
;
...
...
@@ -1857,11 +1847,6 @@ void crocksdb_options_set_enable_write_thread_adaptive_yield(
opt
->
rep
.
enable_write_thread_adaptive_yield
=
v
;
}
void
crocksdb_options_set_verify_checksums_in_compaction
(
crocksdb_options_t
*
opt
,
unsigned
char
v
)
{
opt
->
rep
.
verify_checksums_in_compaction
=
v
;
}
void
crocksdb_options_set_max_sequential_skip_in_iterations
(
crocksdb_options_t
*
opt
,
uint64_t
v
)
{
opt
->
rep
.
max_sequential_skip_in_iterations
=
v
;
...
...
@@ -2001,11 +1986,6 @@ void crocksdb_options_set_max_successive_merges(
opt
->
rep
.
max_successive_merges
=
v
;
}
void
crocksdb_options_set_min_partial_merge_operands
(
crocksdb_options_t
*
opt
,
uint32_t
v
)
{
opt
->
rep
.
min_partial_merge_operands
=
v
;
}
void
crocksdb_options_set_bloom_locality
(
crocksdb_options_t
*
opt
,
uint32_t
v
)
{
opt
->
rep
.
bloom_locality
=
v
;
...
...
librocksdb_sys/crocksdb/rocksdb/c.h
View file @
f6cbc107
...
...
@@ -530,9 +530,6 @@ crocksdb_block_based_options_set_cache_index_and_filter_blocks(
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_block_based_options_set_pin_l0_filter_and_index_blocks_in_cache
(
crocksdb_block_based_table_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_block_based_options_set_skip_table_builder_flush
(
crocksdb_block_based_table_options_t
*
options
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_block_based_table_factory
(
crocksdb_options_t
*
opt
,
crocksdb_block_based_table_options_t
*
table_options
);
...
...
@@ -734,13 +731,8 @@ extern C_ROCKSDB_LIBRARY_API void
crocksdb_options_set_enable_write_thread_adaptive_yield
(
crocksdb_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_verify_checksums_in_compaction
(
crocksdb_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_sequential_skip_in_iterations
(
crocksdb_options_t
*
,
uint64_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_disable_data_sync
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_disable_auto_compactions
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
void
...
...
@@ -769,8 +761,6 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_memtable_huge_page_size(
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_successive_merges
(
crocksdb_options_t
*
,
size_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_min_partial_merge_operands
(
crocksdb_options_t
*
,
uint32_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_bloom_locality
(
crocksdb_options_t
*
,
uint32_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_inplace_update_support
(
...
...
librocksdb_sys/src/lib.rs
View file @
f6cbc107
...
...
@@ -202,7 +202,6 @@ extern "C" {
pub
fn
crocksdb_options_set_max_total_wal_size
(
options
:
*
mut
DBOptions
,
size
:
u64
);
pub
fn
crocksdb_options_set_use_fsync
(
options
:
*
mut
DBOptions
,
v
:
c_int
);
pub
fn
crocksdb_options_set_bytes_per_sync
(
options
:
*
mut
DBOptions
,
bytes
:
u64
);
pub
fn
crocksdb_options_set_disable_data_sync
(
options
:
*
mut
DBOptions
,
v
:
c_int
);
pub
fn
crocksdb_options_optimize_for_point_lookup
(
options
:
*
mut
DBOptions
,
block_cache_size_mb
:
u64
);
pub
fn
crocksdb_options_set_table_cache_numshardbits
(
options
:
*
mut
DBOptions
,
bits
:
c_int
);
...
...
src/main.rs
View file @
f6cbc107
...
...
@@ -163,7 +163,6 @@ mod tests {
opts
.set_max_open_files
(
10000
);
opts
.set_use_fsync
(
false
);
opts
.set_bytes_per_sync
(
8388608
);
opts
.set_disable_data_sync
(
false
);
opts
.set_block_cache_size_mb
(
1024
);
opts
.set_table_cache_num_shard_bits
(
6
);
opts
.set_max_write_buffer_number
(
32
);
...
...
src/rocksdb_options.rs
View file @
f6cbc107
...
...
@@ -429,16 +429,6 @@ impl Options {
}
}
pub
fn
set_disable_data_sync
(
&
mut
self
,
disable
:
bool
)
{
unsafe
{
if
disable
{
crocksdb_ffi
::
crocksdb_options_set_disable_data_sync
(
self
.inner
,
1
);
}
else
{
crocksdb_ffi
::
crocksdb_options_set_disable_data_sync
(
self
.inner
,
0
);
}
}
}
pub
fn
set_table_cache_num_shard_bits
(
&
mut
self
,
nbits
:
c_int
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_table_cache_numshardbits
(
self
.inner
,
nbits
);
...
...
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