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
b127863a
Commit
b127863a
authored
Mar 05, 2018
by
sadroeck
Committed by
Huachao Huang
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Convert variable-length arrays to std::vector (#187)
parent
1ee9509a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
c.cc
librocksdb_sys/crocksdb/c.cc
+4
-4
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
b127863a
...
...
@@ -3478,9 +3478,9 @@ void crocksdb_delete_files_in_ranges_cf(
const
char
*
const
*
start_keys
,
const
size_t
*
start_keys_lens
,
const
char
*
const
*
limit_keys
,
const
size_t
*
limit_keys_lens
,
size_t
num_ranges
,
bool
include_end
,
char
**
errptr
)
{
Slice
starts
[
num_ranges
]
;
Slice
limits
[
num_ranges
]
;
RangePtr
ranges
[
num_ranges
]
;
std
::
vector
<
Slice
>
starts
(
num_ranges
)
;
std
::
vector
<
Slice
>
limits
(
num_ranges
)
;
std
::
vector
<
RangePtr
>
ranges
(
num_ranges
)
;
for
(
auto
i
=
0
;
i
<
num_ranges
;
i
++
)
{
const
Slice
*
start
=
nullptr
;
if
(
start_keys
[
i
])
{
...
...
@@ -3497,7 +3497,7 @@ void crocksdb_delete_files_in_ranges_cf(
SaveError
(
errptr
,
DeleteFilesInRanges
(
db
->
rep
,
cf
->
rep
,
ranges
,
num_ranges
,
include_end
));
db
->
rep
,
cf
->
rep
,
&
ranges
[
0
]
,
num_ranges
,
include_end
));
}
void
crocksdb_free
(
void
*
ptr
)
{
free
(
ptr
);
}
...
...
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