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
21793570
Commit
21793570
authored
May 11, 2016
by
ngaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address comments
parent
150bf4f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
rocksdb.rs
src/rocksdb.rs
+1
-1
rocksdb_options.rs
src/rocksdb_options.rs
+6
-2
No files found.
src/rocksdb.rs
View file @
21793570
...
@@ -442,7 +442,7 @@ impl DB {
...
@@ -442,7 +442,7 @@ impl DB {
pub
fn
write_withou_wal
(
&
self
,
batch
:
WriteBatch
)
->
Result
<
(),
String
>
{
pub
fn
write_withou_wal
(
&
self
,
batch
:
WriteBatch
)
->
Result
<
(),
String
>
{
let
mut
wo
=
WriteOptions
::
new
();
let
mut
wo
=
WriteOptions
::
new
();
wo
.disable_wal
();
wo
.disable_wal
(
true
);
self
.write_opt
(
batch
,
&
wo
)
self
.write_opt
(
batch
,
&
wo
)
}
}
...
...
src/rocksdb_options.rs
View file @
21793570
...
@@ -384,9 +384,13 @@ impl WriteOptions {
...
@@ -384,9 +384,13 @@ impl WriteOptions {
}
}
}
}
pub
fn
disable_wal
(
&
mut
self
)
{
pub
fn
disable_wal
(
&
mut
self
,
disable
:
bool
)
{
unsafe
{
unsafe
{
rocksdb_ffi
::
rocksdb_writeoptions_disable_WAL
(
self
.inner
,
1
);
if
disable
{
rocksdb_ffi
::
rocksdb_writeoptions_disable_WAL
(
self
.inner
,
1
);
}
else
{
rocksdb_ffi
::
rocksdb_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