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
29b7f64a
Commit
29b7f64a
authored
Mar 13, 2017
by
Dylan Wen
Committed by
siddontang
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark new_with constructor unsafe for Options (#27)
parent
b8332a75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
rocksdb.rs
src/rocksdb.rs
+2
-2
rocksdb_options.rs
src/rocksdb_options.rs
+1
-1
No files found.
src/rocksdb.rs
View file @
29b7f64a
...
...
@@ -919,14 +919,14 @@ impl DB {
pub
fn
get_options
(
&
self
)
->
Options
{
unsafe
{
let
inner
=
crocksdb_ffi
::
crocksdb_get_options
(
self
.inner
);
Options
::
new_with
(
inner
)
Options
::
from_raw
(
inner
)
}
}
pub
fn
get_options_cf
(
&
self
,
cf
:
&
CFHandle
)
->
Options
{
unsafe
{
let
inner
=
crocksdb_ffi
::
crocksdb_get_options_cf
(
self
.inner
,
cf
.inner
);
Options
::
new_with
(
inner
)
Options
::
from_raw
(
inner
)
}
}
...
...
src/rocksdb_options.rs
View file @
29b7f64a
...
...
@@ -285,7 +285,7 @@ impl Options {
Options
::
default
()
}
pub
fn
new_with
(
inner
:
*
mut
DBOptions
)
->
Options
{
pub
unsafe
fn
from_raw
(
inner
:
*
mut
DBOptions
)
->
Options
{
assert
!
(
!
inner
.is_null
(),
"could not new rocksdb options with null inner"
);
Options
{
...
...
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