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
0c99c30e
Commit
0c99c30e
authored
May 03, 2017
by
zhangjinpeng1987
Committed by
siddontang
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci (#53)
parent
d519111a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
main.rs
src/main.rs
+0
-27
No files found.
src/main.rs
View file @
0c99c30e
...
...
@@ -113,33 +113,6 @@ fn custom_merge() {
DB
::
destroy
(
&
opts
,
path
)
.is_ok
();
}
#[cfg(feature
=
"valgrind"
)]
fn
main
()
{
let
path
=
"_rust_rocksdb_valgrind"
;
let
mut
opts
=
Options
::
new
();
opts
.create_if_missing
(
true
);
opts
.add_merge_operator
(
"test operator"
,
concat_merge
);
let
db
=
DB
::
open
(
&
opts
,
path
)
.unwrap
();
loop
{
db
.put
(
b
"k1"
,
b
"a"
);
db
.merge
(
b
"k1"
,
b
"b"
);
db
.merge
(
b
"k1"
,
b
"c"
);
db
.merge
(
b
"k1"
,
b
"d"
);
db
.merge
(
b
"k1"
,
b
"efg"
);
db
.merge
(
b
"k1"
,
b
"h"
);
db
.get
(
b
"k1"
)
.map
(|
value
|
{
match
value
.to_utf8
()
{
Some
(
v
)
=>
(),
None
=>
panic!
(
"value corrupted"
),
}
})
.or_else
(|
e
|
panic!
(
"error retrieving value: {}"
,
e
));
db
.delete
(
b
"k1"
);
}
}
#[cfg(test)]
mod
tests
{
use
rocksdb
::{
BlockBasedOptions
,
DB
,
DBCompressionType
,
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