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
f9b32ab0
Commit
f9b32ab0
authored
Sep 06, 2019
by
Little-Wallace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add configuration for memtable pool size
Signed-off-by:
Little-Wallace
<
bupt2013211450@gmail.com
>
parent
fa80736c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
c.cc
librocksdb_sys/crocksdb/c.cc
+5
-0
c.h
librocksdb_sys/crocksdb/crocksdb/c.h
+3
-0
lib.rs
librocksdb_sys/src/lib.rs
+1
-0
rocksdb_options.rs
src/rocksdb_options.rs
+5
-0
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
f9b32ab0
...
...
@@ -2607,6 +2607,11 @@ void crocksdb_options_set_unordered_write(crocksdb_options_t* opt,
opt
->
rep
.
unordered_write
=
v
;
}
void
crocksdb_options_set_enable_multithread_write
(
crocksdb_options_t
*
opt
,
unsigned
char
v
)
{
opt
->
rep
.
enable_multi_thread_write
=
v
;
}
void
crocksdb_options_set_allow_concurrent_memtable_write
(
crocksdb_options_t
*
opt
,
unsigned
char
v
)
{
opt
->
rep
.
allow_concurrent_memtable_write
=
v
;
...
...
librocksdb_sys/crocksdb/crocksdb/c.h
View file @
f9b32ab0
...
...
@@ -1049,6 +1049,9 @@ crocksdb_options_set_enable_pipelined_write(crocksdb_options_t *, unsigned char)
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_unordered_write
(
crocksdb_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_enable_multithread_write
(
crocksdb_options_t
*
opt
,
unsigned
char
v
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_allow_concurrent_memtable_write
(
crocksdb_options_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_manual_wal_flush
(
...
...
librocksdb_sys/src/lib.rs
View file @
f9b32ab0
...
...
@@ -486,6 +486,7 @@ extern "C" {
pub
fn
crocksdb_options_set_bytes_per_sync
(
options
:
*
mut
Options
,
bytes
:
u64
);
pub
fn
crocksdb_options_set_enable_pipelined_write
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_set_unordered_write
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_set_enable_multithread_write
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_set_allow_concurrent_memtable_write
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_set_manual_wal_flush
(
options
:
*
mut
Options
,
v
:
bool
);
pub
fn
crocksdb_options_optimize_for_point_lookup
(
...
...
src/rocksdb_options.rs
View file @
f9b32ab0
...
...
@@ -1027,6 +1027,11 @@ impl DBOptions {
crocksdb_ffi
::
crocksdb_options_set_unordered_write
(
self
.inner
,
v
);
}
}
pub
fn
enable_multithread_write
(
&
self
,
v
:
bool
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_enable_multithread_write
(
self
.inner
,
v
);
}
}
pub
fn
allow_concurrent_memtable_write
(
&
self
,
v
:
bool
)
{
unsafe
{
...
...
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