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
c2a88e04
Commit
c2a88e04
authored
Jan 05, 2017
by
zhangjinpeng1987
Committed by
siddontang
Jan 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compile error (#68)
parent
ecf70584
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
c.h
librocksdb_sys/crocksdb/rocksdb/c.h
+1
-1
rocksdb.rs
src/rocksdb.rs
+2
-2
No files found.
librocksdb_sys/crocksdb/rocksdb/c.h
View file @
c2a88e04
...
...
@@ -873,7 +873,7 @@ extern C_ROCKSDB_LIBRARY_API void crocksdb_readoptions_set_tailing(
crocksdb_readoptions_t
*
,
unsigned
char
);
extern
C_ROCKSDB_LIBRARY_API
void
crocksdb_readoptions_set_readahead_size
(
crocksdb_readoptions_t
*
,
size_t
);
extern
ROCKSDB_LIBRARY_API
void
crocksdb_readoptions_set_total_order_seek
(
extern
C_
ROCKSDB_LIBRARY_API
void
crocksdb_readoptions_set_total_order_seek
(
crocksdb_readoptions_t
*
,
unsigned
char
);
/* Write options */
...
...
src/rocksdb.rs
View file @
c2a88e04
...
...
@@ -897,14 +897,14 @@ impl WriteBatch {
pub
fn
data_size
(
&
self
)
->
usize
{
unsafe
{
let
mut
data_size
:
usize
=
0
;
let
_
=
rocksdb_ffi
::
rocksdb_writebatch_data
(
self
.inner
,
&
mut
data_size
);
let
_
=
crocksdb_ffi
::
c
rocksdb_writebatch_data
(
self
.inner
,
&
mut
data_size
);
return
data_size
;
}
}
pub
fn
clear
(
&
self
)
{
unsafe
{
rocksdb_ffi
::
rocksdb_writebatch_clear
(
self
.inner
);
crocksdb_ffi
::
c
rocksdb_writebatch_clear
(
self
.inner
);
}
}
}
...
...
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