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
75d47ab7
Commit
75d47ab7
authored
May 02, 2017
by
zhangjinpeng1987
Committed by
GitHub
May 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix redefinition error (#48)
parent
a95dd722
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
c.cc
librocksdb_sys/crocksdb/c.cc
+0
-4
c.h
librocksdb_sys/crocksdb/rocksdb/c.h
+0
-2
rocksdb_options.rs
src/rocksdb_options.rs
+0
-6
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
75d47ab7
...
...
@@ -1507,10 +1507,6 @@ void crocksdb_options_set_wal_bytes_per_sync(crocksdb_options_t *opt, uint64_t v
opt
->
rep
.
wal_bytes_per_sync
=
v
;
}
void
crocksdb_options_set_bytes_per_sync
(
crocksdb_options_t
*
opt
,
uint64_t
v
)
{
opt
->
rep
.
bytes_per_sync
=
v
;
}
size_t
crocksdb_options_get_block_cache_usage
(
crocksdb_options_t
*
opt
)
{
if
(
opt
&&
opt
->
rep
.
table_factory
!=
nullptr
)
{
void
*
table_opt
=
opt
->
rep
.
table_factory
->
GetOptions
();
...
...
librocksdb_sys/crocksdb/rocksdb/c.h
View file @
75d47ab7
...
...
@@ -788,8 +788,6 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_options_set_max_subcompactions(
crocksdb_options_t
*
,
size_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_wal_bytes_per_sync
(
crocksdb_options_t
*
,
uint64_t
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_options_set_bytes_per_sync
(
crocksdb_options_t
*
,
uint64_t
);
enum
{
crocksdb_tolerate_corrupted_tail_records_recovery
=
0
,
...
...
src/rocksdb_options.rs
View file @
75d47ab7
...
...
@@ -560,12 +560,6 @@ impl Options {
}
}
pub
fn
set_bytes_per_sync
(
&
mut
self
,
n
:
u64
)
{
unsafe
{
crocksdb_ffi
::
crocksdb_options_set_bytes_per_sync
(
self
.inner
,
n
);
}
}
pub
fn
set_disable_auto_compactions
(
&
mut
self
,
disable
:
bool
)
{
unsafe
{
if
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