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
5abf8854
Unverified
Commit
5abf8854
authored
Apr 21, 2021
by
Xinye Tao
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some missing option getters (#620)
Signed-off-by:
tabokie
<
xy.tao@outlook.com
>
parent
317625fb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
445 additions
and
311 deletions
+445
-311
x86_64-unknown-linux-gnu-bindings.rs
librocksdb_sys/bindings/x86_64-unknown-linux-gnu-bindings.rs
+354
-310
c.cc
librocksdb_sys/crocksdb/c.cc
+32
-0
c.h
librocksdb_sys/crocksdb/crocksdb/c.h
+14
-0
lib.rs
librocksdb_sys/src/lib.rs
+7
-0
rocksdb_options.rs
src/rocksdb_options.rs
+38
-0
titan.rs
src/titan.rs
+0
-1
No files found.
librocksdb_sys/bindings/x86_64-unknown-linux-gnu-bindings.rs
View file @
5abf8854
/* automatically generated by rust-bindgen */
/* automatically generated by rust-bindgen
0.57.0
*/
pub
const
__GNUC_VA_LIST
:
u32
=
1
;
pub
const
_STDINT_H
:
u32
=
1
;
...
...
@@ -75,6 +75,7 @@ pub const WINT_MIN: u32 = 0;
pub
const
WINT_MAX
:
u32
=
4294967295
;
pub
type
va_list
=
__builtin_va_list
;
pub
type
__gnuc_va_list
=
__builtin_va_list
;
pub
type
size_t
=
libc
::
c_ulong
;
pub
type
wchar_t
=
libc
::
c_int
;
#[repr(C)]
#[repr(align(
16
))]
...
...
@@ -486,7 +487,7 @@ pub struct crocksdb_writebatch_iterator_t {
}
pub
const
crocksdb_sst_partitioner_result_t_kNotRequired
:
crocksdb_sst_partitioner_result_t
=
0
;
pub
const
crocksdb_sst_partitioner_result_t_kRequired
:
crocksdb_sst_partitioner_result_t
=
1
;
pub
type
crocksdb_sst_partitioner_result_t
=
u32
;
pub
type
crocksdb_sst_partitioner_result_t
=
libc
::
c_uint
;
#[repr(C)]
#[derive(Debug,
Copy,
Clone)]
pub
struct
crocksdb_sst_partitioner_t
{
...
...
@@ -524,16 +525,16 @@ pub const crocksdb_table_property_t_kMergeOperatorName: crocksdb_table_property_
pub
const
crocksdb_table_property_t_kPrefixExtractorName
:
crocksdb_table_property_t
=
15
;
pub
const
crocksdb_table_property_t_kPropertyCollectorsNames
:
crocksdb_table_property_t
=
16
;
pub
const
crocksdb_table_property_t_kCompressionName
:
crocksdb_table_property_t
=
17
;
pub
type
crocksdb_table_property_t
=
u32
;
pub
type
crocksdb_table_property_t
=
libc
::
c_uint
;
pub
const
crocksdb_ratelimiter_mode_t_kReadsOnly
:
crocksdb_ratelimiter_mode_t
=
1
;
pub
const
crocksdb_ratelimiter_mode_t_kWritesOnly
:
crocksdb_ratelimiter_mode_t
=
2
;
pub
const
crocksdb_ratelimiter_mode_t_kAllIo
:
crocksdb_ratelimiter_mode_t
=
3
;
pub
type
crocksdb_ratelimiter_mode_t
=
u32
;
pub
type
crocksdb_ratelimiter_mode_t
=
libc
::
c_uint
;
pub
const
crocksdb_backgrounderrorreason_t_kFlush
:
crocksdb_backgrounderrorreason_t
=
1
;
pub
const
crocksdb_backgrounderrorreason_t_kCompaction
:
crocksdb_backgrounderrorreason_t
=
2
;
pub
const
crocksdb_backgrounderrorreason_t_kWriteCallback
:
crocksdb_backgrounderrorreason_t
=
3
;
pub
const
crocksdb_backgrounderrorreason_t_kMemTable
:
crocksdb_backgrounderrorreason_t
=
4
;
pub
type
crocksdb_backgrounderrorreason_t
=
u32
;
pub
type
crocksdb_backgrounderrorreason_t
=
libc
::
c_uint
;
#[repr(C)]
#[derive(Debug,
Copy,
Clone)]
pub
struct
crocksdb_file_system_inspector_t
{
...
...
@@ -690,12 +691,12 @@ extern "C" {
pub
fn
crocksdb_list_column_families
(
options
:
*
const
crocksdb_options_t
,
name
:
*
const
libc
::
c_char
,
lencf
:
*
mut
usize
,
lencf
:
*
mut
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
*
mut
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_list_column_families_destroy
(
list
:
*
mut
*
mut
libc
::
c_char
,
len
:
usize
);
pub
fn
crocksdb_list_column_families_destroy
(
list
:
*
mut
*
mut
libc
::
c_char
,
len
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_create_column_family
(
...
...
@@ -732,9 +733,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_writeoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -744,9 +745,9 @@ extern "C" {
options
:
*
const
crocksdb_writeoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -755,7 +756,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_writeoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -765,7 +766,7 @@ extern "C" {
options
:
*
const
crocksdb_writeoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -774,7 +775,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_writeoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -784,7 +785,7 @@ extern "C" {
options
:
*
const
crocksdb_writeoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -794,9 +795,9 @@ extern "C" {
options
:
*
const
crocksdb_writeoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
begin_key
:
*
const
libc
::
c_char
,
begin_keylen
:
usize
,
begin_keylen
:
size_t
,
end_key
:
*
const
libc
::
c_char
,
end_keylen
:
usize
,
end_keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -805,9 +806,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_writeoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -817,9 +818,9 @@ extern "C" {
options
:
*
const
crocksdb_writeoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -836,7 +837,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_writeoptions_t
,
batches
:
*
mut
*
mut
crocksdb_writebatch_t
,
batch_size
:
usize
,
batch_size
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -845,8 +846,8 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_readoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
vallen
:
*
mut
usize
,
keylen
:
size_t
,
vallen
:
*
mut
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
libc
::
c_char
;
}
...
...
@@ -856,8 +857,8 @@ extern "C" {
options
:
*
const
crocksdb_readoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
vallen
:
*
mut
usize
,
keylen
:
size_t
,
vallen
:
*
mut
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
libc
::
c_char
;
}
...
...
@@ -865,11 +866,11 @@ extern "C" {
pub
fn
crocksdb_multi_get
(
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_readoptions_t
,
num_keys
:
usize
,
num_keys
:
size_t
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
values_list
:
*
mut
*
mut
libc
::
c_char
,
values_list_sizes
:
*
mut
usize
,
values_list_sizes
:
*
mut
size_t
,
errs
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -878,11 +879,11 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_readoptions_t
,
column_families
:
*
const
*
const
crocksdb_column_family_handle_t
,
num_keys
:
usize
,
num_keys
:
size_t
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
values_list
:
*
mut
*
mut
libc
::
c_char
,
values_list_sizes
:
*
mut
usize
,
values_list_sizes
:
*
mut
size_t
,
errs
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -905,7 +906,7 @@ extern "C" {
opts
:
*
mut
crocksdb_readoptions_t
,
column_families
:
*
mut
*
mut
crocksdb_column_family_handle_t
,
iterators
:
*
mut
*
mut
crocksdb_iterator_t
,
size
:
usize
,
size
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -962,9 +963,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
num_ranges
:
libc
::
c_int
,
range_start_key
:
*
const
*
const
libc
::
c_char
,
range_start_key_len
:
*
const
usize
,
range_start_key_len
:
*
const
size_t
,
range_limit_key
:
*
const
*
const
libc
::
c_char
,
range_limit_key_len
:
*
const
usize
,
range_limit_key_len
:
*
const
size_t
,
sizes
:
*
mut
u64
,
);
}
...
...
@@ -974,9 +975,9 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
num_ranges
:
libc
::
c_int
,
range_start_key
:
*
const
*
const
libc
::
c_char
,
range_start_key_len
:
*
const
usize
,
range_start_key_len
:
*
const
size_t
,
range_limit_key
:
*
const
*
const
libc
::
c_char
,
range_limit_key_len
:
*
const
usize
,
range_limit_key_len
:
*
const
size_t
,
sizes
:
*
mut
u64
,
);
}
...
...
@@ -984,9 +985,9 @@ extern "C" {
pub
fn
crocksdb_approximate_memtable_stats
(
db
:
*
const
crocksdb_t
,
range_start_key
:
*
const
libc
::
c_char
,
range_start_key_len
:
usize
,
range_start_key_len
:
size_t
,
range_limit_key
:
*
const
libc
::
c_char
,
range_limit_key_len
:
usize
,
range_limit_key_len
:
size_t
,
count
:
*
mut
u64
,
size
:
*
mut
u64
,
);
...
...
@@ -996,9 +997,9 @@ extern "C" {
db
:
*
const
crocksdb_t
,
cf
:
*
const
crocksdb_column_family_handle_t
,
range_start_key
:
*
const
libc
::
c_char
,
range_start_key_len
:
usize
,
range_start_key_len
:
size_t
,
range_limit_key
:
*
const
libc
::
c_char
,
range_limit_key_len
:
usize
,
range_limit_key_len
:
size_t
,
count
:
*
mut
u64
,
size
:
*
mut
u64
,
);
...
...
@@ -1007,9 +1008,9 @@ extern "C" {
pub
fn
crocksdb_compact_range
(
db
:
*
mut
crocksdb_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1017,9 +1018,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1027,9 +1028,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
opt
:
*
mut
crocksdb_compactoptions_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1038,9 +1039,9 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
opt
:
*
mut
crocksdb_compactoptions_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1104,7 +1105,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
names
:
*
mut
*
const
libc
::
c_char
,
values
:
*
mut
*
const
libc
::
c_char
,
num_options
:
usize
,
num_options
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -1120,7 +1121,7 @@ extern "C" {
cf
:
*
mut
crocksdb_column_family_handle_t
,
names
:
*
mut
*
const
libc
::
c_char
,
values
:
*
mut
*
const
libc
::
c_char
,
num_options
:
usize
,
num_options
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -1151,13 +1152,13 @@ extern "C" {
pub
fn
crocksdb_iter_seek_to_last
(
arg1
:
*
mut
crocksdb_iterator_t
);
}
extern
"C"
{
pub
fn
crocksdb_iter_seek
(
arg1
:
*
mut
crocksdb_iterator_t
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
);
pub
fn
crocksdb_iter_seek
(
arg1
:
*
mut
crocksdb_iterator_t
,
k
:
*
const
libc
::
c_char
,
klen
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_iter_seek_for_prev
(
arg1
:
*
mut
crocksdb_iterator_t
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1169,13 +1170,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_iter_key
(
arg1
:
*
const
crocksdb_iterator_t
,
klen
:
*
mut
usize
,
klen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_iter_value
(
arg1
:
*
const
crocksdb_iterator_t
,
vlen
:
*
mut
usize
,
vlen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1189,13 +1190,13 @@ extern "C" {
}
extern
"C"
{
pub
fn
crocksdb_writebatch_create_with_capacity
(
reserved_bytes
:
usize
,
reserved_bytes
:
size_t
,
)
->
*
mut
crocksdb_writebatch_t
;
}
extern
"C"
{
pub
fn
crocksdb_writebatch_create_from
(
rep
:
*
const
libc
::
c_char
,
size
:
usize
,
size
:
size_t
,
)
->
*
mut
crocksdb_writebatch_t
;
}
extern
"C"
{
...
...
@@ -1211,9 +1212,9 @@ extern "C" {
pub
fn
crocksdb_writebatch_put
(
arg1
:
*
mut
crocksdb_writebatch_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1221,9 +1222,9 @@ extern "C" {
arg1
:
*
mut
crocksdb_writebatch_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1231,10 +1232,10 @@ extern "C" {
b
:
*
mut
crocksdb_writebatch_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
num_values
:
libc
::
c_int
,
values_list
:
*
const
*
const
libc
::
c_char
,
values_list_sizes
:
*
const
usize
,
values_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
...
...
@@ -1243,19 +1244,19 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
num_values
:
libc
::
c_int
,
values_list
:
*
const
*
const
libc
::
c_char
,
values_list_sizes
:
*
const
usize
,
values_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_merge
(
arg1
:
*
mut
crocksdb_writebatch_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1263,9 +1264,9 @@ extern "C" {
arg1
:
*
mut
crocksdb_writebatch_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1273,10 +1274,10 @@ extern "C" {
b
:
*
mut
crocksdb_writebatch_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
num_values
:
libc
::
c_int
,
values_list
:
*
const
*
const
libc
::
c_char
,
values_list_sizes
:
*
const
usize
,
values_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
...
...
@@ -1285,17 +1286,17 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
num_values
:
libc
::
c_int
,
values_list
:
*
const
*
const
libc
::
c_char
,
values_list_sizes
:
*
const
usize
,
values_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_delete
(
arg1
:
*
mut
crocksdb_writebatch_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1303,14 +1304,14 @@ extern "C" {
arg1
:
*
mut
crocksdb_writebatch_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_single_delete
(
arg1
:
*
mut
crocksdb_writebatch_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1318,7 +1319,7 @@ extern "C" {
arg1
:
*
mut
crocksdb_writebatch_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1326,7 +1327,7 @@ extern "C" {
b
:
*
mut
crocksdb_writebatch_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
...
...
@@ -1335,16 +1336,16 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
num_keys
:
libc
::
c_int
,
keys_list
:
*
const
*
const
libc
::
c_char
,
keys_list_sizes
:
*
const
usize
,
keys_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_delete_range
(
b
:
*
mut
crocksdb_writebatch_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
end_key
:
*
const
libc
::
c_char
,
end_key_len
:
usize
,
end_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1352,9 +1353,9 @@ extern "C" {
b
:
*
mut
crocksdb_writebatch_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
end_key
:
*
const
libc
::
c_char
,
end_key_len
:
usize
,
end_key_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1362,9 +1363,9 @@ extern "C" {
b
:
*
mut
crocksdb_writebatch_t
,
num_keys
:
libc
::
c_int
,
start_keys_list
:
*
const
*
const
libc
::
c_char
,
start_keys_list_sizes
:
*
const
usize
,
start_keys_list_sizes
:
*
const
size_t
,
end_keys_list
:
*
const
*
const
libc
::
c_char
,
end_keys_list_sizes
:
*
const
usize
,
end_keys_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
...
...
@@ -1373,16 +1374,16 @@ extern "C" {
column_family
:
*
mut
crocksdb_column_family_handle_t
,
num_keys
:
libc
::
c_int
,
start_keys_list
:
*
const
*
const
libc
::
c_char
,
start_keys_list_sizes
:
*
const
usize
,
start_keys_list_sizes
:
*
const
size_t
,
end_keys_list
:
*
const
*
const
libc
::
c_char
,
end_keys_list_sizes
:
*
const
usize
,
end_keys_list_sizes
:
*
const
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_put_log_data
(
arg1
:
*
mut
crocksdb_writebatch_t
,
blob
:
*
const
libc
::
c_char
,
len
:
usize
,
len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1393,13 +1394,13 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
v
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
),
>
,
deleted
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
),
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
size_t
),
>
,
);
}
...
...
@@ -1411,9 +1412,9 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
v
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
),
>
,
put_cf
:
::
std
::
option
::
Option
<
...
...
@@ -1421,20 +1422,20 @@ extern "C" {
arg1
:
*
mut
libc
::
c_void
,
cf
:
u32
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
v
:
*
const
libc
::
c_char
,
vlen
:
usize
,
vlen
:
size_t
,
),
>
,
deleted
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
),
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
k
:
*
const
libc
::
c_char
,
klen
:
size_t
),
>
,
deleted_cf
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
cf
:
u32
,
k
:
*
const
libc
::
c_char
,
klen
:
usize
,
klen
:
size_t
,
),
>
,
);
...
...
@@ -1442,7 +1443,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_writebatch_data
(
arg1
:
*
mut
crocksdb_writebatch_t
,
size
:
*
mut
usize
,
size
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1464,23 +1465,23 @@ extern "C" {
pub
fn
crocksdb_writebatch_set_content
(
b
:
*
mut
crocksdb_writebatch_t
,
data
:
*
const
libc
::
c_char
,
dlen
:
usize
,
dlen
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_append_content
(
dest
:
*
mut
crocksdb_writebatch_t
,
data
:
*
const
libc
::
c_char
,
dlen
:
usize
,
dlen
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_writebatch_ref_count
(
data
:
*
const
libc
::
c_char
,
dlen
:
usize
)
->
libc
::
c_int
;
pub
fn
crocksdb_writebatch_ref_count
(
data
:
*
const
libc
::
c_char
,
dlen
:
size_t
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_writebatch_ref_iterator_create
(
data
:
*
const
libc
::
c_char
,
dlen
:
usize
,
dlen
:
size_t
,
)
->
*
mut
crocksdb_writebatch_iterator_t
;
}
extern
"C"
{
...
...
@@ -1502,13 +1503,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_writebatch_iterator_key
(
it
:
*
mut
crocksdb_writebatch_iterator_t
,
klen
:
*
mut
usize
,
klen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_writebatch_iterator_value
(
it
:
*
mut
crocksdb_writebatch_iterator_t
,
klen
:
*
mut
usize
,
klen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1530,13 +1531,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_block_based_options_set_metadata_block_size
(
options
:
*
mut
crocksdb_block_based_table_options_t
,
block_size
:
usize
,
block_size
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_block_based_options_set_block_size
(
options
:
*
mut
crocksdb_block_based_table_options_t
,
block_size
:
usize
,
block_size
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -1587,10 +1588,10 @@ extern "C" {
arg2
:
libc
::
c_int
,
);
}
pub
const
crocksdb_block_based_table_index_type_binary_search
:
_bindgen_ty_1
=
0
;
pub
const
crocksdb_block_based_table_index_type_hash_search
:
_bindgen_ty_1
=
1
;
pub
const
crocksdb_block_based_table_index_type_two_level_index_search
:
_bindgen_ty_1
=
2
;
pub
type
_bindgen_ty_1
=
u32
;
pub
const
crocksdb_block_based_table_index_type_binary_search
:
libc
::
c_uint
=
0
;
pub
const
crocksdb_block_based_table_index_type_hash_search
:
libc
::
c_uint
=
1
;
pub
const
crocksdb_block_based_table_index_type_two_level_index_search
:
libc
::
c_uint
=
2
;
pub
type
_bindgen_ty_1
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_block_based_options_set_index_type
(
arg1
:
*
mut
crocksdb_block_based_table_options_t
,
...
...
@@ -1646,28 +1647,28 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_block_cache_usage
(
opt
:
*
mut
crocksdb_options_t
)
->
usize
;
pub
fn
crocksdb_options_get_block_cache_usage
(
opt
:
*
mut
crocksdb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_block_cache_capacity
(
opt
:
*
mut
crocksdb_options_t
,
capacity
:
usize
,
capacity
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_block_cache_capacity
(
opt
:
*
mut
crocksdb_options_t
)
->
usize
;
pub
fn
crocksdb_options_get_block_cache_capacity
(
opt
:
*
mut
crocksdb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_flushjobinfo_cf_name
(
arg1
:
*
const
crocksdb_flushjobinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_flushjobinfo_file_path
(
arg1
:
*
const
crocksdb_flushjobinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1694,31 +1695,31 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_compactionjobinfo_cf_name
(
arg1
:
*
const
crocksdb_compactionjobinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_compactionjobinfo_input_files_count
(
arg1
:
*
const
crocksdb_compactionjobinfo_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_compactionjobinfo_input_file_at
(
arg1
:
*
const
crocksdb_compactionjobinfo_t
,
pos
:
usize
,
arg2
:
*
mut
usize
,
pos
:
size_t
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_compactionjobinfo_output_files_count
(
arg1
:
*
const
crocksdb_compactionjobinfo_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_compactionjobinfo_output_file_at
(
arg1
:
*
const
crocksdb_compactionjobinfo_t
,
pos
:
usize
,
arg2
:
*
mut
usize
,
pos
:
size_t
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1770,7 +1771,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_subcompactionjobinfo_cf_name
(
arg1
:
*
const
crocksdb_subcompactionjobinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1791,13 +1792,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_externalfileingestioninfo_cf_name
(
arg1
:
*
const
crocksdb_externalfileingestioninfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_externalfileingestioninfo_internal_file_path
(
arg1
:
*
const
crocksdb_externalfileingestioninfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -1808,7 +1809,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_writestallinfo_cf_name
(
arg1
:
*
const
crocksdb_writestallinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -2006,7 +2007,7 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
crocksdb_options_compaction_readahead_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_compaction_readahead_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_comparator
(
...
...
@@ -2024,11 +2025,11 @@ extern "C" {
pub
fn
crocksdb_options_set_compression_per_level
(
opt
:
*
mut
crocksdb_options_t
,
level_values
:
*
mut
libc
::
c_int
,
num_levels
:
usize
,
num_levels
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_compression_level_number
(
opt
:
*
mut
crocksdb_options_t
)
->
usize
;
pub
fn
crocksdb_options_get_compression_level_number
(
opt
:
*
mut
crocksdb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_get_compression_per_level
(
...
...
@@ -2077,10 +2078,13 @@ extern "C" {
pub
fn
crocksdb_options_set_info_log_level
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_write_buffer_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_write_buffer_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_db_write_buffer_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_get_write_buffer_size
(
arg1
:
*
mut
crocksdb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_db_write_buffer_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_max_open_files
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
...
...
@@ -2141,6 +2145,11 @@ extern "C" {
arg2
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_level0_file_num_compaction_trigger
(
arg1
:
*
mut
crocksdb_options_t
,
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_level0_slowdown_writes_trigger
(
arg1
:
*
mut
crocksdb_options_t
,
...
...
@@ -2178,6 +2187,9 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_max_bytes_for_level_base
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
u64
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_max_bytes_for_level_base
(
arg1
:
*
mut
crocksdb_options_t
)
->
u64
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_optimize_filters_for_hits
(
arg1
:
*
mut
crocksdb_options_t
,
...
...
@@ -2210,7 +2222,7 @@ extern "C" {
pub
fn
crocksdb_options_set_max_bytes_for_level_multiplier_additional
(
arg1
:
*
mut
crocksdb_options_t
,
level_values
:
*
mut
libc
::
c_int
,
num_levels
:
usize
,
num_levels
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2236,7 +2248,7 @@ extern "C" {
env
:
*
mut
crocksdb_env_t
,
db_options
:
*
mut
crocksdb_options_t
,
cf_descs
:
*
mut
*
mut
*
mut
crocksdb_column_family_descriptor
,
cf_descs_len
:
*
mut
usize
,
cf_descs_len
:
*
mut
size_t
,
ignore_unknown_options
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
libc
::
c_uchar
;
...
...
@@ -2282,12 +2294,22 @@ extern "C" {
arg2
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_max_write_buffer_number
(
arg1
:
*
mut
crocksdb_options_t
,
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_min_write_buffer_number_to_merge
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_min_write_buffer_number_to_merge
(
arg1
:
*
mut
crocksdb_options_t
,
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_max_write_buffer_number_to_maintain
(
arg1
:
*
mut
crocksdb_options_t
,
...
...
@@ -2327,16 +2349,16 @@ extern "C" {
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_max_log_file_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_max_log_file_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_log_file_time_to_roll
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_log_file_time_to_roll
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_keep_log_file_num
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_keep_log_file_num
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_recycle_log_file_num
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_recycle_log_file_num
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_soft_rate_limit
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
f64
);
...
...
@@ -2347,24 +2369,24 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_soft_pending_compaction_bytes_limit
(
opt
:
*
mut
crocksdb_options_t
,
v
:
usize
,
v
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_soft_pending_compaction_bytes_limit
(
opt
:
*
mut
crocksdb_options_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_hard_pending_compaction_bytes_limit
(
opt
:
*
mut
crocksdb_options_t
,
v
:
usize
,
v
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_hard_pending_compaction_bytes_limit
(
opt
:
*
mut
crocksdb_options_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_rate_limit_delay_max_milliseconds
(
...
...
@@ -2373,7 +2395,7 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_max_manifest_file_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_max_manifest_file_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_table_cache_numshardbits
(
...
...
@@ -2388,7 +2410,7 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_arena_block_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_arena_block_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_use_fsync
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
...
...
@@ -2397,24 +2419,24 @@ extern "C" {
pub
fn
crocksdb_options_set_db_paths
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
*
const
*
const
libc
::
c_char
,
arg3
:
*
const
usize
,
arg3
:
*
const
size_t
,
arg4
:
*
const
u64
,
arg5
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_db_paths_num
(
arg1
:
*
mut
crocksdb_options_t
)
->
usize
;
pub
fn
crocksdb_options_get_db_paths_num
(
arg1
:
*
mut
crocksdb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_options_get_db_path
(
arg1
:
*
mut
crocksdb_options_t
,
index
:
usize
,
index
:
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_options_get_path_target_size
(
arg1
:
*
mut
crocksdb_options_t
,
index
:
usize
,
index
:
size_t
,
)
->
u64
;
}
extern
"C"
{
...
...
@@ -2435,7 +2457,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_manifest_preallocation_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2570,16 +2592,19 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_max_compaction_bytes
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
u64
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_max_compaction_bytes
(
arg1
:
*
mut
crocksdb_options_t
)
->
u64
;
}
extern
"C"
{
pub
fn
crocksdb_options_set_hash_skip_list_rep
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
arg3
:
i32
,
arg4
:
i32
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_hash_link_list_rep
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_hash_link_list_rep
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_doubly_skip_list_rep
(
opt
:
*
mut
crocksdb_options_t
);
...
...
@@ -2590,7 +2615,7 @@ extern "C" {
arg2
:
u32
,
arg3
:
libc
::
c_int
,
arg4
:
f64
,
arg5
:
usize
,
arg5
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2600,10 +2625,13 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_memtable_huge_page_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_memtable_huge_page_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_max_successive_merges
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
);
pub
fn
crocksdb_options_set_max_successive_merges
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_options_set_bloom_locality
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
u32
);
...
...
@@ -2617,7 +2645,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_inplace_update_num_locks
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2629,7 +2657,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_compaction_readahead_size
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2638,31 +2666,31 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_wal_bytes_per_sync
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
u64
);
}
pub
const
crocksdb_tolerate_corrupted_tail_records_recovery
:
_bindgen_ty_2
=
0
;
pub
const
crocksdb_absolute_consistency_recovery
:
_bindgen_ty_2
=
1
;
pub
const
crocksdb_point_in_time_recovery
:
_bindgen_ty_2
=
2
;
pub
const
crocksdb_skip_any_corrupted_records_recovery
:
_bindgen_ty_2
=
3
;
pub
type
_bindgen_ty_2
=
u32
;
pub
const
crocksdb_tolerate_corrupted_tail_records_recovery
:
libc
::
c_uint
=
0
;
pub
const
crocksdb_absolute_consistency_recovery
:
libc
::
c_uint
=
1
;
pub
const
crocksdb_point_in_time_recovery
:
libc
::
c_uint
=
2
;
pub
const
crocksdb_skip_any_corrupted_records_recovery
:
libc
::
c_uint
=
3
;
pub
type
_bindgen_ty_2
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_options_set_wal_recovery_mode
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
}
pub
const
crocksdb_no_compression
:
_bindgen_ty_3
=
0
;
pub
const
crocksdb_snappy_compression
:
_bindgen_ty_3
=
1
;
pub
const
crocksdb_zlib_compression
:
_bindgen_ty_3
=
2
;
pub
const
crocksdb_bz2_compression
:
_bindgen_ty_3
=
3
;
pub
const
crocksdb_lz4_compression
:
_bindgen_ty_3
=
4
;
pub
const
crocksdb_lz4hc_compression
:
_bindgen_ty_3
=
5
;
pub
type
_bindgen_ty_3
=
u32
;
pub
const
crocksdb_no_compression
:
libc
::
c_uint
=
0
;
pub
const
crocksdb_snappy_compression
:
libc
::
c_uint
=
1
;
pub
const
crocksdb_zlib_compression
:
libc
::
c_uint
=
2
;
pub
const
crocksdb_bz2_compression
:
libc
::
c_uint
=
3
;
pub
const
crocksdb_lz4_compression
:
libc
::
c_uint
=
4
;
pub
const
crocksdb_lz4hc_compression
:
libc
::
c_uint
=
5
;
pub
type
_bindgen_ty_3
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_options_set_compression
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_compression
(
arg1
:
*
mut
crocksdb_options_t
)
->
libc
::
c_int
;
}
pub
const
crocksdb_level_compaction
:
_bindgen_ty_4
=
0
;
pub
const
crocksdb_universal_compaction
:
_bindgen_ty_4
=
1
;
pub
const
crocksdb_fifo_compaction
:
_bindgen_ty_4
=
2
;
pub
type
_bindgen_ty_4
=
u32
;
pub
const
crocksdb_level_compaction
:
libc
::
c_uint
=
0
;
pub
const
crocksdb_universal_compaction
:
libc
::
c_uint
=
1
;
pub
const
crocksdb_fifo_compaction
:
libc
::
c_uint
=
2
;
pub
type
_bindgen_ty_4
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_options_set_compaction_style
(
arg1
:
*
mut
crocksdb_options_t
,
arg2
:
libc
::
c_int
);
}
...
...
@@ -2698,11 +2726,11 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_atomic_flush
(
opt
:
*
mut
crocksdb_options_t
,
enable
:
libc
::
c_uchar
);
}
pub
const
compaction_by_compensated_size
:
_bindgen_ty_5
=
0
;
pub
const
compaction_by_oldest_largestseq_first
:
_bindgen_ty_5
=
1
;
pub
const
compaction_by_oldest_smallest_seq_first
:
_bindgen_ty_5
=
2
;
pub
const
compaction_by_min_overlapping_ratio
:
_bindgen_ty_5
=
3
;
pub
type
_bindgen_ty_5
=
u32
;
pub
const
compaction_by_compensated_size
:
libc
::
c_uint
=
0
;
pub
const
compaction_by_oldest_largestseq_first
:
libc
::
c_uint
=
1
;
pub
const
compaction_by_oldest_smallest_seq_first
:
libc
::
c_uint
=
2
;
pub
const
compaction_by_min_overlapping_ratio
:
libc
::
c_uint
=
3
;
pub
type
_bindgen_ty_5
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_options_set_compaction_priority
(
arg1
:
*
mut
crocksdb_options_t
,
...
...
@@ -2718,6 +2746,11 @@ extern "C" {
arg2
:
libc
::
c_uchar
,
);
}
extern
"C"
{
pub
fn
crocksdb_options_get_force_consistency_checks
(
arg1
:
*
mut
crocksdb_options_t
,
)
->
libc
::
c_uchar
;
}
extern
"C"
{
pub
fn
crocksdb_ratelimiter_create
(
rate_bytes_per_sec
:
i64
,
...
...
@@ -2761,10 +2794,10 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_ratelimiter_get_singleburst_bytes
(
limiter
:
*
mut
crocksdb_ratelimiter_t
)
->
i64
;
}
pub
const
env_io_priority_low
:
_bindgen_ty_6
=
0
;
pub
const
env_io_priority_high
:
_bindgen_ty_6
=
1
;
pub
const
env_io_priority_total
:
_bindgen_ty_6
=
2
;
pub
type
_bindgen_ty_6
=
u32
;
pub
const
env_io_priority_low
:
libc
::
c_uint
=
0
;
pub
const
env_io_priority_high
:
libc
::
c_uint
=
1
;
pub
const
env_io_priority_total
:
libc
::
c_uint
=
2
;
pub
type
_bindgen_ty_6
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_ratelimiter_request
(
limiter
:
*
mut
crocksdb_ratelimiter_t
,
...
...
@@ -2811,13 +2844,13 @@ extern "C" {
pub
fn
crocksdb_compactionfiltercontext_file_numbers
(
context
:
*
mut
crocksdb_compactionfiltercontext_t
,
buffer
:
*
mut
*
const
u64
,
len
:
*
mut
usize
,
len
:
*
mut
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_compactionfiltercontext_table_properties
(
context
:
*
mut
crocksdb_compactionfiltercontext_t
,
offset
:
usize
,
offset
:
size_t
,
)
->
*
mut
crocksdb_table_properties_t
;
}
extern
"C"
{
...
...
@@ -2846,9 +2879,9 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
a
:
*
const
libc
::
c_char
,
alen
:
usize
,
alen
:
size_t
,
b
:
*
const
libc
::
c_char
,
blen
:
usize
,
blen
:
size_t
,
)
->
libc
::
c_int
,
>
,
name
:
::
std
::
option
::
Option
<
...
...
@@ -2867,25 +2900,25 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key_array
:
*
const
*
const
libc
::
c_char
,
key_length_array
:
*
const
usize
,
key_length_array
:
*
const
size_t
,
num_keys
:
libc
::
c_int
,
filter_length
:
*
mut
usize
,
filter_length
:
*
mut
size_t
,
)
->
*
mut
libc
::
c_char
,
>
,
key_may_match
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
length
:
usize
,
length
:
size_t
,
filter
:
*
const
libc
::
c_char
,
filter_length
:
usize
,
filter_length
:
size_t
,
)
->
libc
::
c_uchar
,
>
,
delete_filter
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
filter
:
*
const
libc
::
c_char
,
filter_length
:
usize
,
filter_length
:
size_t
,
),
>
,
name
:
::
std
::
option
::
Option
<
...
...
@@ -2914,33 +2947,33 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
key_length
:
usize
,
key_length
:
size_t
,
existing_value
:
*
const
libc
::
c_char
,
existing_value_length
:
usize
,
existing_value_length
:
size_t
,
operands_list
:
*
const
*
const
libc
::
c_char
,
operands_list_length
:
*
const
usize
,
operands_list_length
:
*
const
size_t
,
num_operands
:
libc
::
c_int
,
success
:
*
mut
libc
::
c_uchar
,
new_value_length
:
*
mut
usize
,
new_value_length
:
*
mut
size_t
,
)
->
*
mut
libc
::
c_char
,
>
,
partial_merge
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
key_length
:
usize
,
key_length
:
size_t
,
operands_list
:
*
const
*
const
libc
::
c_char
,
operands_list_length
:
*
const
usize
,
operands_list_length
:
*
const
size_t
,
num_operands
:
libc
::
c_int
,
success
:
*
mut
libc
::
c_uchar
,
new_value_length
:
*
mut
usize
,
new_value_length
:
*
mut
size_t
,
)
->
*
mut
libc
::
c_char
,
>
,
delete_value
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
value
:
*
const
libc
::
c_char
,
value_length
:
usize
,
value_length
:
size_t
,
),
>
,
name
:
::
std
::
option
::
Option
<
...
...
@@ -2979,14 +3012,14 @@ extern "C" {
pub
fn
crocksdb_readoptions_set_iterate_lower_bound
(
arg1
:
*
mut
crocksdb_readoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_readoptions_set_iterate_upper_bound
(
arg1
:
*
mut
crocksdb_readoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -2999,7 +3032,7 @@ extern "C" {
pub
fn
crocksdb_readoptions_set_managed
(
arg1
:
*
mut
crocksdb_readoptions_t
,
arg2
:
libc
::
c_uchar
);
}
extern
"C"
{
pub
fn
crocksdb_readoptions_set_readahead_size
(
arg1
:
*
mut
crocksdb_readoptions_t
,
arg2
:
usize
);
pub
fn
crocksdb_readoptions_set_readahead_size
(
arg1
:
*
mut
crocksdb_readoptions_t
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_readoptions_set_max_skippable_internal_keys
(
...
...
@@ -3157,7 +3190,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_lru_cache_options_set_capacity
(
arg1
:
*
mut
crocksdb_lru_cache_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -3193,7 +3226,7 @@ extern "C" {
pub
fn
crocksdb_cache_destroy
(
cache
:
*
mut
crocksdb_cache_t
);
}
extern
"C"
{
pub
fn
crocksdb_cache_set_capacity
(
cache
:
*
mut
crocksdb_cache_t
,
capacity
:
usize
);
pub
fn
crocksdb_cache_set_capacity
(
cache
:
*
mut
crocksdb_cache_t
,
capacity
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_default_env_create
()
->
*
mut
crocksdb_env_t
;
...
...
@@ -3205,7 +3238,7 @@ extern "C" {
pub
fn
crocksdb_ctr_encrypted_env_create
(
base_env
:
*
mut
crocksdb_env_t
,
ciphertext
:
*
const
libc
::
c_char
,
ciphertext_len
:
usize
,
ciphertext_len
:
size_t
,
)
->
*
mut
crocksdb_env_t
;
}
extern
"C"
{
...
...
@@ -3254,15 +3287,15 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_sequential_file_read
(
arg1
:
*
mut
crocksdb_sequential_file_t
,
n
:
usize
,
n
:
size_t
,
buf
:
*
mut
libc
::
c_char
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_sequential_file_skip
(
arg1
:
*
mut
crocksdb_sequential_file_t
,
n
:
usize
,
n
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -3272,16 +3305,16 @@ extern "C" {
pub
type
crocksdb_file_system_inspector_read_cb
=
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
state
:
*
mut
libc
::
c_void
,
len
:
usize
,
len
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
usize
,
)
->
size_t
,
>
;
pub
type
crocksdb_file_system_inspector_write_cb
=
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
state
:
*
mut
libc
::
c_void
,
len
:
usize
,
len
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
usize
,
)
->
size_t
,
>
;
extern
"C"
{
pub
fn
crocksdb_file_system_inspector_create
(
...
...
@@ -3297,16 +3330,16 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_file_system_inspector_read
(
inspector
:
*
mut
crocksdb_file_system_inspector_t
,
len
:
usize
,
len
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_file_system_inspector_write
(
inspector
:
*
mut
crocksdb_file_system_inspector_t
,
len
:
usize
,
len
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_file_system_inspected_env_create
(
...
...
@@ -3374,9 +3407,9 @@ extern "C" {
pub
fn
crocksdb_sstfilewriter_put
(
writer
:
*
mut
crocksdb_sstfilewriter_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -3384,9 +3417,9 @@ extern "C" {
pub
fn
crocksdb_sstfilewriter_merge
(
writer
:
*
mut
crocksdb_sstfilewriter_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
val
:
*
const
libc
::
c_char
,
vallen
:
usize
,
vallen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -3394,7 +3427,7 @@ extern "C" {
pub
fn
crocksdb_sstfilewriter_delete
(
writer
:
*
mut
crocksdb_sstfilewriter_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -3402,9 +3435,9 @@ extern "C" {
pub
fn
crocksdb_sstfilewriter_delete_range
(
writer
:
*
mut
crocksdb_sstfilewriter_t
,
begin_key
:
*
const
libc
::
c_char
,
begin_keylen
:
usize
,
begin_keylen
:
size_t
,
end_key
:
*
const
libc
::
c_char
,
end_keylen
:
usize
,
end_keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -3430,19 +3463,19 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_externalsstfileinfo_file_path
(
arg1
:
*
mut
crocksdb_externalsstfileinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_externalsstfileinfo_smallest_key
(
arg1
:
*
mut
crocksdb_externalsstfileinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_externalsstfileinfo_largest_key
(
arg1
:
*
mut
crocksdb_externalsstfileinfo_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -3495,7 +3528,7 @@ extern "C" {
pub
fn
crocksdb_ingest_external_file
(
db
:
*
mut
crocksdb_t
,
file_list
:
*
const
*
const
libc
::
c_char
,
list_len
:
usize
,
list_len
:
size_t
,
opt
:
*
const
crocksdb_ingestexternalfileoptions_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -3505,7 +3538,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
handle
:
*
mut
crocksdb_column_family_handle_t
,
file_list
:
*
const
*
const
libc
::
c_char
,
list_len
:
usize
,
list_len
:
size_t
,
opt
:
*
const
crocksdb_ingestexternalfileoptions_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -3515,7 +3548,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
handle
:
*
mut
crocksdb_column_family_handle_t
,
file_list
:
*
const
*
const
libc
::
c_char
,
list_len
:
usize
,
list_len
:
size_t
,
opt
:
*
const
crocksdb_ingestexternalfileoptions_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
libc
::
c_uchar
;
...
...
@@ -3528,22 +3561,22 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
length
:
usize
,
dst_length
:
*
mut
usize
,
length
:
size_t
,
dst_length
:
*
mut
size_t
,
)
->
*
mut
libc
::
c_char
,
>
,
in_domain
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
length
:
usize
,
length
:
size_t
,
)
->
libc
::
c_uchar
,
>
,
in_range
:
::
std
::
option
::
Option
<
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
length
:
usize
,
length
:
size_t
,
)
->
libc
::
c_uchar
,
>
,
name
:
::
std
::
option
::
Option
<
...
...
@@ -3553,7 +3586,7 @@ extern "C" {
}
extern
"C"
{
pub
fn
crocksdb_slicetransform_create_fixed_prefix
(
arg1
:
usize
,
arg1
:
size_t
,
)
->
*
mut
crocksdb_slicetransform_t
;
}
extern
"C"
{
...
...
@@ -3562,9 +3595,9 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_slicetransform_destroy
(
arg1
:
*
mut
crocksdb_slicetransform_t
);
}
pub
const
crocksdb_similar_size_compaction_stop_style
:
_bindgen_ty_7
=
0
;
pub
const
crocksdb_total_size_compaction_stop_style
:
_bindgen_ty_7
=
1
;
pub
type
_bindgen_ty_7
=
u32
;
pub
const
crocksdb_similar_size_compaction_stop_style
:
libc
::
c_uint
=
0
;
pub
const
crocksdb_total_size_compaction_stop_style
:
libc
::
c_uint
=
1
;
pub
type
_bindgen_ty_7
=
libc
::
c_uint
;
extern
"C"
{
pub
fn
crocksdb_universal_compaction_options_create
(
)
->
*
mut
crocksdb_universal_compaction_options_t
;
...
...
@@ -3646,20 +3679,21 @@ extern "C" {
)
->
libc
::
c_int
;
}
extern
"C"
{
pub
fn
crocksdb_livefiles_size
(
arg1
:
*
const
crocksdb_livefiles_t
,
index
:
libc
::
c_int
)
->
usize
;
pub
fn
crocksdb_livefiles_size
(
arg1
:
*
const
crocksdb_livefiles_t
,
index
:
libc
::
c_int
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_livefiles_smallestkey
(
arg1
:
*
const
crocksdb_livefiles_t
,
index
:
libc
::
c_int
,
size
:
*
mut
usize
,
size
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_livefiles_largestkey
(
arg1
:
*
const
crocksdb_livefiles_t
,
index
:
libc
::
c_int
,
size
:
*
mut
usize
,
size
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -3677,9 +3711,9 @@ extern "C" {
pub
fn
crocksdb_delete_files_in_range
(
db
:
*
mut
crocksdb_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -3689,9 +3723,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -3701,10 +3735,10 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
cf
:
*
mut
crocksdb_column_family_handle_t
,
start_keys
:
*
const
*
const
libc
::
c_char
,
start_keys_lens
:
*
const
usize
,
start_keys_lens
:
*
const
size_t
,
limit_keys
:
*
const
*
const
libc
::
c_char
,
limit_keys_lens
:
*
const
usize
,
num_ranges
:
usize
,
limit_keys_lens
:
*
const
size_t
,
num_ranges
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -3733,7 +3767,7 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
options
:
*
const
crocksdb_readoptions_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
crocksdb_pinnableslice_t
;
}
...
...
@@ -3743,7 +3777,7 @@ extern "C" {
options
:
*
const
crocksdb_readoptions_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
key
:
*
const
libc
::
c_char
,
keylen
:
usize
,
keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
crocksdb_pinnableslice_t
;
}
...
...
@@ -3753,14 +3787,14 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_pinnableslice_value
(
t
:
*
const
crocksdb_pinnableslice_t
,
vlen
:
*
mut
usize
,
vlen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_get_supported_compression_number
()
->
usize
;
pub
fn
crocksdb_get_supported_compression_number
()
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_get_supported_compression
(
arg1
:
*
mut
libc
::
c_int
,
arg2
:
usize
);
pub
fn
crocksdb_get_supported_compression
(
arg1
:
*
mut
libc
::
c_int
,
arg2
:
size_t
);
}
extern
"C"
{
pub
fn
crocksdb_table_properties_get_u64
(
...
...
@@ -3772,7 +3806,7 @@ extern "C" {
pub
fn
crocksdb_table_properties_get_str
(
arg1
:
*
const
crocksdb_table_properties_t
,
prop
:
crocksdb_table_property_t
,
slen
:
*
mut
usize
,
slen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -3784,22 +3818,22 @@ extern "C" {
pub
fn
crocksdb_user_collected_properties_get
(
props
:
*
const
crocksdb_user_collected_properties_t
,
key
:
*
const
libc
::
c_char
,
klen
:
usize
,
vlen
:
*
mut
usize
,
klen
:
size_t
,
vlen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_user_collected_properties_len
(
arg1
:
*
const
crocksdb_user_collected_properties_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_user_collected_properties_add
(
arg1
:
*
mut
crocksdb_user_collected_properties_t
,
key
:
*
const
libc
::
c_char
,
key_len
:
usize
,
key_len
:
size_t
,
value
:
*
const
libc
::
c_char
,
value_len
:
usize
,
value_len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -3825,19 +3859,19 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_user_collected_properties_iter_key
(
arg1
:
*
const
crocksdb_user_collected_properties_iterator_t
,
klen
:
*
mut
usize
,
klen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_user_collected_properties_iter_value
(
arg1
:
*
const
crocksdb_user_collected_properties_iterator_t
,
vlen
:
*
mut
usize
,
vlen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_table_properties_collection_len
(
arg1
:
*
const
crocksdb_table_properties_collection_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_table_properties_collection_destroy
(
...
...
@@ -3867,7 +3901,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_table_properties_collection_iter_key
(
arg1
:
*
const
crocksdb_table_properties_collection_iterator_t
,
klen
:
*
mut
usize
,
klen
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -3886,9 +3920,9 @@ extern "C" {
unsafe
extern
"C"
fn
(
arg1
:
*
mut
libc
::
c_void
,
key
:
*
const
libc
::
c_char
,
key_len
:
usize
,
key_len
:
size_t
,
value
:
*
const
libc
::
c_char
,
value_len
:
usize
,
value_len
:
size_t
,
entry_type
:
libc
::
c_int
,
seq
:
u64
,
file_size
:
u64
,
...
...
@@ -3936,8 +3970,8 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_options_set_compact_on_deletion
(
opt
:
*
mut
crocksdb_options_t
,
sliding_window_size
:
usize
,
deletion_trigger
:
usize
,
sliding_window_size
:
size_t
,
deletion_trigger
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -3959,9 +3993,9 @@ extern "C" {
cf
:
*
mut
crocksdb_column_family_handle_t
,
num_ranges
:
libc
::
c_int
,
start_keys
:
*
const
*
const
libc
::
c_char
,
start_keys_lens
:
*
const
usize
,
start_keys_lens
:
*
const
size_t
,
limit_keys
:
*
const
*
const
libc
::
c_char
,
limit_keys_lens
:
*
const
usize
,
limit_keys_lens
:
*
const
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
crocksdb_table_properties_collection_t
;
}
...
...
@@ -3972,14 +4006,14 @@ extern "C" {
pub
fn
crocksdb_get_all_key_versions
(
db
:
*
mut
crocksdb_t
,
begin_key
:
*
const
libc
::
c_char
,
begin_keylen
:
usize
,
begin_keylen
:
size_t
,
end_key
:
*
const
libc
::
c_char
,
end_keylen
:
usize
,
end_keylen
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
)
->
*
mut
crocksdb_keyversions_t
;
}
extern
"C"
{
pub
fn
crocksdb_keyversions_count
(
kvs
:
*
const
crocksdb_keyversions_t
)
->
usize
;
pub
fn
crocksdb_keyversions_count
(
kvs
:
*
const
crocksdb_keyversions_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_keyversions_key
(
...
...
@@ -4027,25 +4061,25 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_column_family_meta_data_level_count
(
arg1
:
*
const
crocksdb_column_family_meta_data_t
,
)
->
usize
;
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_column_family_meta_data_level_data
(
arg1
:
*
const
crocksdb_column_family_meta_data_t
,
n
:
usize
,
n
:
size_t
,
)
->
*
const
crocksdb_level_meta_data_t
;
}
extern
"C"
{
pub
fn
crocksdb_level_meta_data_file_count
(
arg1
:
*
const
crocksdb_level_meta_data_t
)
->
usize
;
pub
fn
crocksdb_level_meta_data_file_count
(
arg1
:
*
const
crocksdb_level_meta_data_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_level_meta_data_file_data
(
arg1
:
*
const
crocksdb_level_meta_data_t
,
n
:
usize
,
n
:
size_t
,
)
->
*
const
crocksdb_sst_file_meta_data_t
;
}
extern
"C"
{
pub
fn
crocksdb_sst_file_meta_data_size
(
arg1
:
*
const
crocksdb_sst_file_meta_data_t
)
->
usize
;
pub
fn
crocksdb_sst_file_meta_data_size
(
arg1
:
*
const
crocksdb_sst_file_meta_data_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
crocksdb_sst_file_meta_data_name
(
...
...
@@ -4055,13 +4089,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_sst_file_meta_data_smallestkey
(
arg1
:
*
const
crocksdb_sst_file_meta_data_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_sst_file_meta_data_largestkey
(
arg1
:
*
const
crocksdb_sst_file_meta_data_t
,
arg2
:
*
mut
usize
,
arg2
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -4079,7 +4113,7 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_compaction_options_set_output_file_size_limit
(
arg1
:
*
mut
crocksdb_compaction_options_t
,
arg2
:
usize
,
arg2
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -4094,7 +4128,7 @@ extern "C" {
arg2
:
*
mut
crocksdb_column_family_handle_t
,
arg3
:
*
mut
crocksdb_compaction_options_t
,
input_file_names
:
*
mut
*
const
libc
::
c_char
,
input_file_count
:
usize
,
input_file_count
:
size_t
,
output_level
:
libc
::
c_int
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4446,13 +4480,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_request_prev_user_key
(
req
:
*
mut
crocksdb_sst_partitioner_request_t
,
len
:
*
mut
usize
,
len
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_request_current_user_key
(
req
:
*
mut
crocksdb_sst_partitioner_request_t
,
len
:
*
mut
usize
,
len
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -4464,14 +4498,14 @@ extern "C" {
pub
fn
crocksdb_sst_partitioner_req_set_prev_user_key
(
req
:
*
mut
crocksdb_sst_partitioner_request_t
,
key
:
*
const
libc
::
c_char
,
len
:
usize
,
len
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_req_set_current_user_key
(
req
:
*
mut
crocksdb_sst_partitioner_request_t
,
key
:
*
const
libc
::
c_char
,
len
:
usize
,
len
:
size_t
,
);
}
extern
"C"
{
...
...
@@ -4490,9 +4524,9 @@ pub type crocksdb_sst_partitioner_can_do_trivial_move_cb = ::std::option::Option
unsafe
extern
"C"
fn
(
underlying
:
*
mut
libc
::
c_void
,
smallest_user_key
:
*
const
libc
::
c_char
,
smallest_user_key_len
:
usize
,
smallest_user_key_len
:
size_t
,
largest_user_key
:
*
const
libc
::
c_char
,
largest_user_key_len
:
usize
,
largest_user_key_len
:
size_t
,
)
->
libc
::
c_uchar
,
>
;
extern
"C"
{
...
...
@@ -4516,9 +4550,9 @@ extern "C" {
pub
fn
crocksdb_sst_partitioner_can_do_trivial_move
(
partitioner
:
*
mut
crocksdb_sst_partitioner_t
,
smallest_user_key
:
*
const
libc
::
c_char
,
smallest_user_key_len
:
usize
,
smallest_user_key_len
:
size_t
,
largest_user_key
:
*
const
libc
::
c_char
,
largest_user_key_len
:
usize
,
largest_user_key_len
:
size_t
,
)
->
libc
::
c_uchar
;
}
extern
"C"
{
...
...
@@ -4547,13 +4581,13 @@ extern "C" {
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_context_smallest_key
(
context
:
*
mut
crocksdb_sst_partitioner_context_t
,
key_len
:
*
mut
usize
,
key_len
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_context_largest_key
(
context
:
*
mut
crocksdb_sst_partitioner_context_t
,
key_len
:
*
mut
usize
,
key_len
:
*
mut
size_t
,
)
->
*
const
libc
::
c_char
;
}
extern
"C"
{
...
...
@@ -4578,14 +4612,14 @@ extern "C" {
pub
fn
crocksdb_sst_partitioner_context_set_smallest_key
(
context
:
*
mut
crocksdb_sst_partitioner_context_t
,
smallest_key
:
*
const
libc
::
c_char
,
key_len
:
usize
,
key_len
:
size_t
,
);
}
extern
"C"
{
pub
fn
crocksdb_sst_partitioner_context_set_largest_key
(
context
:
*
mut
crocksdb_sst_partitioner_context_t
,
largest_key
:
*
const
libc
::
c_char
,
key_len
:
usize
,
key_len
:
size_t
,
);
}
pub
type
crocksdb_sst_partitioner_factory_name_cb
=
::
std
::
option
::
Option
<
...
...
@@ -4769,10 +4803,20 @@ extern "C" {
type_
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
ctitandb_options_set_compression_options
(
opt
:
*
mut
ctitandb_options_t
,
arg1
:
libc
::
c_int
,
arg2
:
libc
::
c_int
,
arg3
:
libc
::
c_int
,
arg4
:
libc
::
c_int
,
arg5
:
libc
::
c_int
,
);
}
extern
"C"
{
pub
fn
ctitandb_decode_blob_index
(
value
:
*
const
libc
::
c_char
,
value_size
:
usize
,
value_size
:
size_t
,
index
:
*
mut
ctitandb_blob_index_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4781,7 +4825,7 @@ extern "C" {
pub
fn
ctitandb_encode_blob_index
(
index
:
*
const
ctitandb_blob_index_t
,
value
:
*
mut
*
mut
libc
::
c_char
,
value_size
:
*
mut
usize
,
value_size
:
*
mut
size_t
,
);
}
extern
"C"
{
...
...
@@ -4848,17 +4892,17 @@ extern "C" {
);
}
extern
"C"
{
pub
fn
ctitandb_options_get_blob_cache_usage
(
opt
:
*
mut
ctitandb_options_t
)
->
usize
;
pub
fn
ctitandb_options_get_blob_cache_usage
(
opt
:
*
mut
ctitandb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
ctitandb_options_set_blob_cache_capacity
(
opt
:
*
mut
ctitandb_options_t
,
capacity
:
usize
,
capacity
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
extern
"C"
{
pub
fn
ctitandb_options_get_blob_cache_capacity
(
opt
:
*
mut
ctitandb_options_t
)
->
usize
;
pub
fn
ctitandb_options_get_blob_cache_capacity
(
opt
:
*
mut
ctitandb_options_t
)
->
size_t
;
}
extern
"C"
{
pub
fn
ctitandb_options_set_discardable_ratio
(
options
:
*
mut
ctitandb_options_t
,
ratio
:
f64
);
...
...
@@ -4903,7 +4947,7 @@ extern "C" {
titan_options
:
*
mut
ctitandb_readoptions_t
,
column_families
:
*
mut
*
mut
crocksdb_column_family_handle_t
,
iterators
:
*
mut
*
mut
crocksdb_iterator_t
,
size
:
usize
,
size
:
size_t
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
}
...
...
@@ -4911,9 +4955,9 @@ extern "C" {
pub
fn
ctitandb_delete_files_in_range
(
db
:
*
mut
crocksdb_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4923,9 +4967,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4935,10 +4979,10 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
cf
:
*
mut
crocksdb_column_family_handle_t
,
start_keys
:
*
const
*
const
libc
::
c_char
,
start_keys_lens
:
*
const
usize
,
start_keys_lens
:
*
const
size_t
,
limit_keys
:
*
const
*
const
libc
::
c_char
,
limit_keys_lens
:
*
const
usize
,
num_ranges
:
usize
,
limit_keys_lens
:
*
const
size_t
,
num_ranges
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4947,9 +4991,9 @@ extern "C" {
pub
fn
ctitandb_delete_blob_files_in_range
(
db
:
*
mut
crocksdb_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4959,9 +5003,9 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
column_family
:
*
mut
crocksdb_column_family_handle_t
,
start_key
:
*
const
libc
::
c_char
,
start_key_len
:
usize
,
start_key_len
:
size_t
,
limit_key
:
*
const
libc
::
c_char
,
limit_key_len
:
usize
,
limit_key_len
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
@@ -4971,10 +5015,10 @@ extern "C" {
db
:
*
mut
crocksdb_t
,
cf
:
*
mut
crocksdb_column_family_handle_t
,
start_keys
:
*
const
*
const
libc
::
c_char
,
start_keys_lens
:
*
const
usize
,
start_keys_lens
:
*
const
size_t
,
limit_keys
:
*
const
*
const
libc
::
c_char
,
limit_keys_lens
:
*
const
usize
,
num_ranges
:
usize
,
limit_keys_lens
:
*
const
size_t
,
num_ranges
:
size_t
,
include_end
:
libc
::
c_uchar
,
errptr
:
*
mut
*
mut
libc
::
c_char
,
);
...
...
librocksdb_sys/crocksdb/c.cc
View file @
5abf8854
...
...
@@ -2533,6 +2533,10 @@ void crocksdb_options_set_write_buffer_size(crocksdb_options_t* opt, size_t s) {
opt
->
rep
.
write_buffer_size
=
s
;
}
size_t
crocksdb_options_get_write_buffer_size
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
write_buffer_size
;
}
void
crocksdb_options_set_max_open_files
(
crocksdb_options_t
*
opt
,
int
n
)
{
opt
->
rep
.
max_open_files
=
n
;
}
...
...
@@ -2562,6 +2566,11 @@ void crocksdb_options_set_max_bytes_for_level_base(crocksdb_options_t* opt,
opt
->
rep
.
max_bytes_for_level_base
=
n
;
}
uint64_t
crocksdb_options_get_max_bytes_for_level_base
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
max_bytes_for_level_base
;
}
void
crocksdb_options_set_level_compaction_dynamic_level_bytes
(
crocksdb_options_t
*
opt
,
unsigned
char
v
)
{
opt
->
rep
.
level_compaction_dynamic_level_bytes
=
v
;
...
...
@@ -2587,6 +2596,10 @@ void crocksdb_options_set_max_compaction_bytes(crocksdb_options_t* opt,
opt
->
rep
.
max_compaction_bytes
=
n
;
}
uint64_t
crocksdb_options_get_max_compaction_bytes
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
max_compaction_bytes
;
}
void
crocksdb_options_set_max_bytes_for_level_multiplier_additional
(
crocksdb_options_t
*
opt
,
int
*
level_values
,
size_t
num_levels
)
{
opt
->
rep
.
max_bytes_for_level_multiplier_additional
.
resize
(
num_levels
);
...
...
@@ -2637,6 +2650,11 @@ void crocksdb_options_set_level0_file_num_compaction_trigger(
opt
->
rep
.
level0_file_num_compaction_trigger
=
n
;
}
int
crocksdb_options_get_level0_file_num_compaction_trigger
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
level0_file_num_compaction_trigger
;
}
void
crocksdb_options_set_level0_slowdown_writes_trigger
(
crocksdb_options_t
*
opt
,
int
n
)
{
opt
->
rep
.
level0_slowdown_writes_trigger
=
n
;
...
...
@@ -2893,11 +2911,20 @@ void crocksdb_options_set_max_write_buffer_number(crocksdb_options_t* opt,
opt
->
rep
.
max_write_buffer_number
=
n
;
}
int
crocksdb_options_get_max_write_buffer_number
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
max_write_buffer_number
;
}
void
crocksdb_options_set_min_write_buffer_number_to_merge
(
crocksdb_options_t
*
opt
,
int
n
)
{
opt
->
rep
.
min_write_buffer_number_to_merge
=
n
;
}
int
crocksdb_options_get_min_write_buffer_number_to_merge
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
min_write_buffer_number_to_merge
;
}
void
crocksdb_options_set_max_write_buffer_number_to_maintain
(
crocksdb_options_t
*
opt
,
int
n
)
{
opt
->
rep
.
max_write_buffer_number_to_maintain
=
n
;
...
...
@@ -3131,6 +3158,11 @@ void crocksdb_options_set_force_consistency_checks(crocksdb_options_t* opt,
opt
->
rep
.
force_consistency_checks
=
v
;
}
unsigned
char
crocksdb_options_get_force_consistency_checks
(
crocksdb_options_t
*
opt
)
{
return
opt
->
rep
.
force_consistency_checks
;
}
char
*
crocksdb_options_statistics_get_string
(
crocksdb_options_t
*
opt
)
{
if
(
opt
->
rep
.
statistics
)
{
rocksdb
::
Statistics
*
statistics
=
opt
->
rep
.
statistics
.
get
();
...
...
librocksdb_sys/crocksdb/crocksdb/c.h
View file @
5abf8854
...
...
@@ -987,6 +987,8 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_info_log_level(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_write_buffer_size
(
crocksdb_options_t
*
,
size_t
);
extern
C_ROCKSDB_LIBRARY_API
size_t
crocksdb_options_get_write_buffer_size
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_db_write_buffer_size
(
crocksdb_options_t
*
,
size_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_open_files
(
...
...
@@ -1015,6 +1017,8 @@ extern C_ROCKSDB_LIBRARY_API int crocksdb_options_get_num_levels(
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_level0_file_num_compaction_trigger
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
int
crocksdb_options_get_level0_file_num_compaction_trigger
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_level0_slowdown_writes_trigger
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
int
...
...
@@ -1031,6 +1035,8 @@ extern C_ROCKSDB_LIBRARY_API void
crocksdb_options_set_target_file_size_multiplier
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_bytes_for_level_base
(
crocksdb_options_t
*
,
uint64_t
);
extern
C_ROCKSDB_LIBRARY_API
uint64_t
crocksdb_options_get_max_bytes_for_level_base
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_optimize_filters_for_hits
(
crocksdb_options_t
*
,
unsigned
char
);
...
...
@@ -1083,8 +1089,12 @@ crocksdb_options_statistics_get_histogram(crocksdb_options_t* opt,
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_write_buffer_number
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
int
crocksdb_options_get_max_write_buffer_number
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_min_write_buffer_number_to_merge
(
crocksdb_options_t
*
,
int
);
extern
C_ROCKSDB_LIBRARY_API
int
crocksdb_options_get_min_write_buffer_number_to_merge
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_write_buffer_number_to_maintain
(
crocksdb_options_t
*
,
int
);
...
...
@@ -1213,6 +1223,8 @@ crocksdb_options_set_memtable_prefix_bloom_size_ratio(crocksdb_options_t*,
double
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_max_compaction_bytes
(
crocksdb_options_t
*
,
uint64_t
);
extern
C_ROCKSDB_LIBRARY_API
uint64_t
crocksdb_options_get_max_compaction_bytes
(
crocksdb_options_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_hash_skip_list_rep
(
crocksdb_options_t
*
,
size_t
,
int32_t
,
int32_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_hash_link_list_rep
(
...
...
@@ -1301,6 +1313,8 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_delayed_write_rate(
crocksdb_options_t
*
,
uint64_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_force_consistency_checks
(
crocksdb_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
unsigned
char
crocksdb_options_get_force_consistency_checks
(
crocksdb_options_t
*
);
/* RateLimiter */
extern
C_ROCKSDB_LIBRARY_API
crocksdb_ratelimiter_t
*
...
...
librocksdb_sys/src/lib.rs
View file @
5abf8854
...
...
@@ -666,26 +666,32 @@ extern "C" {
pub
fn
crocksdb_options_set_table_cache_numshardbits
(
options
:
*
mut
Options
,
bits
:
c_int
);
pub
fn
crocksdb_options_set_writable_file_max_buffer_size
(
options
:
*
mut
Options
,
nbytes
:
c_int
);
pub
fn
crocksdb_options_set_max_write_buffer_number
(
options
:
*
mut
Options
,
bufno
:
c_int
);
pub
fn
crocksdb_options_get_max_write_buffer_number
(
options
:
*
mut
Options
)
->
c_int
;
pub
fn
crocksdb_options_set_min_write_buffer_number_to_merge
(
options
:
*
mut
Options
,
bufno
:
c_int
,
);
pub
fn
crocksdb_options_get_min_write_buffer_number_to_merge
(
options
:
*
mut
Options
)
->
c_int
;
pub
fn
crocksdb_options_set_level0_file_num_compaction_trigger
(
options
:
*
mut
Options
,
no
:
c_int
,
);
pub
fn
crocksdb_options_get_level0_file_num_compaction_trigger
(
options
:
*
mut
Options
)
->
c_int
;
pub
fn
crocksdb_options_set_level0_slowdown_writes_trigger
(
options
:
*
mut
Options
,
no
:
c_int
);
pub
fn
crocksdb_options_get_level0_slowdown_writes_trigger
(
options
:
*
mut
Options
)
->
c_int
;
pub
fn
crocksdb_options_set_level0_stop_writes_trigger
(
options
:
*
mut
Options
,
no
:
c_int
);
pub
fn
crocksdb_options_get_level0_stop_writes_trigger
(
options
:
*
mut
Options
)
->
c_int
;
pub
fn
crocksdb_options_set_write_buffer_size
(
options
:
*
mut
Options
,
bytes
:
u64
);
pub
fn
crocksdb_options_get_write_buffer_size
(
options
:
*
mut
Options
)
->
u64
;
pub
fn
crocksdb_options_set_target_file_size_base
(
options
:
*
mut
Options
,
bytes
:
u64
);
pub
fn
crocksdb_options_get_target_file_size_base
(
options
:
*
const
Options
)
->
u64
;
pub
fn
crocksdb_options_set_target_file_size_multiplier
(
options
:
*
mut
Options
,
mul
:
c_int
);
pub
fn
crocksdb_options_set_max_bytes_for_level_base
(
options
:
*
mut
Options
,
bytes
:
u64
);
pub
fn
crocksdb_options_get_max_bytes_for_level_base
(
options
:
*
mut
Options
)
->
u64
;
pub
fn
crocksdb_options_set_max_bytes_for_level_multiplier
(
options
:
*
mut
Options
,
mul
:
f64
);
pub
fn
crocksdb_options_get_max_bytes_for_level_multiplier
(
options
:
*
mut
Options
)
->
f64
;
pub
fn
crocksdb_options_set_max_compaction_bytes
(
options
:
*
mut
Options
,
bytes
:
u64
);
pub
fn
crocksdb_options_get_max_compaction_bytes
(
options
:
*
mut
Options
)
->
u64
;
pub
fn
crocksdb_options_set_max_log_file_size
(
options
:
*
mut
Options
,
bytes
:
size_t
);
pub
fn
crocksdb_options_set_log_file_time_to_roll
(
options
:
*
mut
Options
,
bytes
:
size_t
);
pub
fn
crocksdb_options_set_info_log_level
(
options
:
*
mut
Options
,
level
:
DBInfoLogLevel
);
...
...
@@ -815,6 +821,7 @@ extern "C" {
);
pub
fn
crocksdb_options_set_delayed_write_rate
(
options
:
*
mut
Options
,
rate
:
u64
);
pub
fn
crocksdb_options_set_force_consistency_checks
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_get_force_consistency_checks
(
options
:
*
mut
Options
)
->
bool
;
pub
fn
crocksdb_options_set_ratelimiter
(
options
:
*
mut
Options
,
limiter
:
*
mut
DBRateLimiter
);
pub
fn
crocksdb_options_get_ratelimiter
(
options
:
*
mut
Options
)
->
*
mut
DBRateLimiter
;
pub
fn
crocksdb_options_set_info_log
(
options
:
*
mut
Options
,
logger
:
*
mut
DBLogger
);
...
...
src/rocksdb_options.rs
View file @
5abf8854
...
...
@@ -1556,24 +1556,42 @@ impl ColumnFamilyOptions {
}
}
pub
fn
get_min_write_buffer_number
(
&
mut
self
)
->
u32
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
}
}
pub
fn
set_max_write_buffer_number
(
&
mut
self
,
nbuf
:
c_int
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_max_write_buffer_number
(
self
.inner
,
nbuf
);
}
}
pub
fn
get_max_write_buffer_number
(
&
mut
self
)
->
u32
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_write_buffer_number
(
self
.inner
)
as
u32
}
}
pub
fn
set_write_buffer_size
(
&
mut
self
,
size
:
u64
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_write_buffer_size
(
self
.inner
,
size
);
}
}
pub
fn
get_write_buffer_size
(
&
mut
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_write_buffer_size
(
self
.inner
)
as
u64
}
}
pub
fn
set_max_bytes_for_level_base
(
&
mut
self
,
size
:
u64
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_max_bytes_for_level_base
(
self
.inner
,
size
);
}
}
pub
fn
get_max_bytes_for_level_base
(
&
mut
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_bytes_for_level_base
(
self
.inner
)
as
u64
}
}
pub
fn
set_max_bytes_for_level_multiplier
(
&
mut
self
,
mul
:
i32
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_max_bytes_for_level_multiplier
(
...
...
@@ -1595,6 +1613,10 @@ impl ColumnFamilyOptions {
}
}
pub
fn
get_max_compaction_bytes
(
&
mut
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_max_compaction_bytes
(
self
.inner
)
}
}
pub
fn
set_level_compaction_dynamic_level_bytes
(
&
mut
self
,
v
:
bool
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_level_compaction_dynamic_level_bytes
(
self
.inner
,
v
);
...
...
@@ -1653,12 +1675,24 @@ impl ColumnFamilyOptions {
}
}
pub
fn
get_min_write_buffer_number_to_merge
(
&
mut
self
)
->
u32
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_min_write_buffer_number_to_merge
(
self
.inner
)
as
u32
}
}
pub
fn
set_level_zero_file_num_compaction_trigger
(
&
mut
self
,
n
:
c_int
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_level0_file_num_compaction_trigger
(
self
.inner
,
n
);
}
}
pub
fn
get_level_zero_file_num_compaction_trigger
(
&
mut
self
)
->
u32
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_level0_file_num_compaction_trigger
(
self
.inner
)
as
u32
}
}
pub
fn
set_level_zero_slowdown_writes_trigger
(
&
mut
self
,
n
:
c_int
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_level0_slowdown_writes_trigger
(
self
.inner
,
n
);
...
...
@@ -1791,6 +1825,10 @@ impl ColumnFamilyOptions {
}
}
pub
fn
get_force_consistency_checks
(
&
mut
self
)
->
bool
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_force_consistency_checks
(
self
.inner
)
}
}
pub
fn
get_block_cache_usage
(
&
self
)
->
u64
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_get_block_cache_usage
(
self
.inner
)
as
u64
}
}
...
...
src/titan.rs
View file @
5abf8854
...
...
@@ -80,7 +80,6 @@ impl TitanDBOptions {
}
}
pub
fn
set_disable_background_gc
(
&
mut
self
,
disable
:
bool
)
{
unsafe
{
crocksdb_ffi
::
ctitandb_options_set_disable_background_gc
(
self
.inner
,
disable
);
...
...
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