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
224be1fd
Commit
224be1fd
authored
Sep 08, 2016
by
ngaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: update version and fix compiling
parent
4c8e2192
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
Cargo.toml
Cargo.toml
+1
-1
Cargo.toml
librocksdb_sys/Cargo.toml
+2
-3
rocksdb.rs
src/rocksdb.rs
+4
-4
rocksdb_options.rs
src/rocksdb_options.rs
+2
-2
No files found.
Cargo.toml
View file @
224be1fd
...
@@ -24,7 +24,7 @@ name = "test"
...
@@ -24,7 +24,7 @@ name = "test"
path
=
"test/test.rs"
path
=
"test/test.rs"
[dependencies]
[dependencies]
libc
=
"0.
1.8
"
libc
=
"0.
2.11
"
tempdir
=
"0.3.4"
tempdir
=
"0.3.4"
[dependencies.librocksdb_sys]
[dependencies.librocksdb_sys]
...
...
librocksdb_sys/Cargo.toml
View file @
224be1fd
...
@@ -5,5 +5,5 @@ authors = ["Jay Lee <busyjaylee@gmail.com>"]
...
@@ -5,5 +5,5 @@ authors = ["Jay Lee <busyjaylee@gmail.com>"]
build
=
"build.rs"
build
=
"build.rs"
[dependencies]
[dependencies]
libc
=
"0.1.8"
libc
=
"0.2.11"
tempdir
=
"0.3"
tempdir
=
"0.3"
\ No newline at end of file
src/rocksdb.rs
View file @
224be1fd
...
@@ -786,14 +786,14 @@ impl DB {
...
@@ -786,14 +786,14 @@ impl DB {
let
start_keys
:
Vec
<*
const
u8
>
=
ranges
.iter
()
let
start_keys
:
Vec
<*
const
u8
>
=
ranges
.iter
()
.map
(|
x
|
x
.start_key
.as_ptr
())
.map
(|
x
|
x
.start_key
.as_ptr
())
.collect
();
.collect
();
let
start_key_lens
:
Vec
<
u
64
>
=
ranges
.iter
()
let
start_key_lens
:
Vec
<
u
size
>
=
ranges
.iter
()
.map
(|
x
|
x
.start_key
.len
()
as
u
64
)
.map
(|
x
|
x
.start_key
.len
()
as
u
size
)
.collect
();
.collect
();
let
end_keys
:
Vec
<*
const
u8
>
=
ranges
.iter
()
let
end_keys
:
Vec
<*
const
u8
>
=
ranges
.iter
()
.map
(|
x
|
x
.end_key
.as_ptr
())
.map
(|
x
|
x
.end_key
.as_ptr
())
.collect
();
.collect
();
let
end_key_lens
:
Vec
<
u
64
>
=
ranges
.iter
()
let
end_key_lens
:
Vec
<
u
size
>
=
ranges
.iter
()
.map
(|
x
|
x
.end_key
.len
()
as
u
64
)
.map
(|
x
|
x
.end_key
.len
()
as
u
size
)
.collect
();
.collect
();
let
mut
sizes
:
Vec
<
u64
>
=
vec!
[
0
;
ranges
.len
()];
let
mut
sizes
:
Vec
<
u64
>
=
vec!
[
0
;
ranges
.len
()];
let
(
n
,
let
(
n
,
...
...
src/rocksdb_options.rs
View file @
224be1fd
...
@@ -75,7 +75,7 @@ impl BlockBasedOptions {
...
@@ -75,7 +75,7 @@ impl BlockBasedOptions {
BlockBasedOptions
::
default
()
BlockBasedOptions
::
default
()
}
}
pub
fn
set_block_size
(
&
mut
self
,
size
:
u
64
)
{
pub
fn
set_block_size
(
&
mut
self
,
size
:
u
size
)
{
unsafe
{
unsafe
{
rocksdb_ffi
::
rocksdb_block_based_options_set_block_size
(
self
.inner
,
rocksdb_ffi
::
rocksdb_block_based_options_set_block_size
(
self
.inner
,
size
);
size
);
...
@@ -299,7 +299,7 @@ impl Options {
...
@@ -299,7 +299,7 @@ impl Options {
}
}
}
}
pub
fn
set_write_buffer_size
(
&
mut
self
,
size
:
size_t
)
{
pub
fn
set_write_buffer_size
(
&
mut
self
,
size
:
u64
)
{
unsafe
{
unsafe
{
rocksdb_ffi
::
rocksdb_options_set_write_buffer_size
(
self
.inner
,
rocksdb_ffi
::
rocksdb_options_set_write_buffer_size
(
self
.inner
,
size
);
size
);
...
...
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