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
551a7d03
Commit
551a7d03
authored
Jul 06, 2017
by
Cholerae Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rocksdb: remove copy ctor
Signed-off-by:
Cholerae Hu
<
huyingqian@pingcap.com
>
parent
6463f1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
c.cc
librocksdb_sys/crocksdb/c.cc
+2
-5
No files found.
librocksdb_sys/crocksdb/c.cc
View file @
551a7d03
...
...
@@ -112,10 +112,7 @@ struct crocksdb_readoptions_t {
Slice
upper_bound
;
// stack variable to set pointer to in ReadOptions
};
struct
crocksdb_writeoptions_t
{
WriteOptions
rep
;
};
struct
crocksdb_options_t
{
crocksdb_options_t
()
=
default
;
crocksdb_options_t
(
const
crocksdb_options_t
&
other
)
:
rep
(
other
.
rep
)
{}
Options
rep
;
};
struct
crocksdb_options_t
{
Options
rep
;
};
struct
crocksdb_compactoptions_t
{
CompactRangeOptions
rep
;
};
...
...
@@ -1594,7 +1591,7 @@ crocksdb_options_t* crocksdb_options_create() {
}
crocksdb_options_t
*
crocksdb_options_copy
(
const
crocksdb_options_t
*
other
)
{
return
new
crocksdb_options_t
(
*
other
)
;
return
new
crocksdb_options_t
{
Options
(
other
->
rep
)
}
;
}
void
crocksdb_options_destroy
(
crocksdb_options_t
*
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