Commit 551a7d03 authored by Cholerae Hu's avatar Cholerae Hu

rocksdb: remove copy ctor

Signed-off-by: 's avatarCholerae Hu <huyingqian@pingcap.com>
parent 6463f1cd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment