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
b971057c
Commit
b971057c
authored
Mar 15, 2017
by
Yann Autissier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lowercase crocksdb_writeoptions_disable_WAL function name
Use wal uniformly instead of WAL
parent
a59d24fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
c.cc
librocksdb_sys/crocksdb/c.cc
+1
-1
c.h
librocksdb_sys/crocksdb/rocksdb/c.h
+1
-1
lib.rs
librocksdb_sys/src/lib.rs
+1
-1
rocksdb_options.rs
src/rocksdb_options.rs
+2
-2
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
b971057c
...
...
@@ -2379,7 +2379,7 @@ void crocksdb_writeoptions_set_sync(
opt
->
rep
.
sync
=
v
;
}
void
crocksdb_writeoptions_disable_
WAL
(
crocksdb_writeoptions_t
*
opt
,
int
disable
)
{
void
crocksdb_writeoptions_disable_
wal
(
crocksdb_writeoptions_t
*
opt
,
int
disable
)
{
opt
->
rep
.
disableWAL
=
disable
;
}
...
...
librocksdb_sys/crocksdb/rocksdb/c.h
View file @
b971057c
...
...
@@ -938,7 +938,7 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_writeoptions_destroy(
crocksdb_writeoptions_t
*
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_writeoptions_set_sync
(
crocksdb_writeoptions_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_writeoptions_disable_
WAL
(
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_writeoptions_disable_
wal
(
crocksdb_writeoptions_t
*
opt
,
int
disable
);
/* Compact range options */
...
...
librocksdb_sys/src/lib.rs
View file @
b971057c
...
...
@@ -287,7 +287,7 @@ extern "C" {
pub
fn
crocksdb_writeoptions_create
()
->
*
mut
DBWriteOptions
;
pub
fn
crocksdb_writeoptions_destroy
(
writeopts
:
*
mut
DBWriteOptions
);
pub
fn
crocksdb_writeoptions_set_sync
(
writeopts
:
*
mut
DBWriteOptions
,
v
:
bool
);
pub
fn
crocksdb_writeoptions_disable_
WAL
(
writeopts
:
*
mut
DBWriteOptions
,
v
:
c_int
);
pub
fn
crocksdb_writeoptions_disable_
wal
(
writeopts
:
*
mut
DBWriteOptions
,
v
:
c_int
);
pub
fn
crocksdb_put
(
db
:
*
mut
DBInstance
,
writeopts
:
*
mut
DBWriteOptions
,
k
:
*
const
u8
,
...
...
src/rocksdb_options.rs
View file @
b971057c
...
...
@@ -246,9 +246,9 @@ impl WriteOptions {
pub
fn
disable_wal
(
&
mut
self
,
disable
:
bool
)
{
unsafe
{
if
disable
{
crocksdb_ffi
::
crocksdb_writeoptions_disable_
WAL
(
self
.inner
,
1
);
crocksdb_ffi
::
crocksdb_writeoptions_disable_
wal
(
self
.inner
,
1
);
}
else
{
crocksdb_ffi
::
crocksdb_writeoptions_disable_
WAL
(
self
.inner
,
0
);
crocksdb_ffi
::
crocksdb_writeoptions_disable_
wal
(
self
.inner
,
0
);
}
}
}
...
...
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