Conversation
riversand963
left a comment
There was a problem hiding this comment.
LGTM as long as CI build passes. Left a couple of minor questions.
utilities/env_mirror.cc
Outdated
| char* bscratch = new char[n]; | ||
| Slice bslice; | ||
| size_t off = 0; | ||
| size_t off __attribute__((__unused__)) = 0; |
There was a problem hiding this comment.
It is used in assert(). So the compiler only complain when DEBUG_LEVEL=0.
There was a problem hiding this comment.
Windows build is failing for that. How about we only define that with in #ifndef NDEBUG?
There was a problem hiding this comment.
Yeah, I think attribute is gcc/clang thing
| struct MutableDBOptions { | ||
| static const char* kName() { return "MutableDBOptions"; } | ||
| MutableDBOptions(); | ||
| explicit MutableDBOptions(const MutableDBOptions& options) = default; |
There was a problem hiding this comment.
What is the error related to this copy constructor?
There was a problem hiding this comment.
Here is the error message:
./options/db_options.h:119:12: error: definition of implicit copy assignment operator for 'MutableDBOptions' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
explicit MutableDBOptions(const MutableDBOptions& options) = default;
^
db/db_impl/db_impl.cc:1229:27: note: in implicit copy assignment operator for 'rocksdb::MutableDBOptions' first required here
mutable_db_options_ = new_options;
|
|
||
| if (read_keys.find(i) == read_keys.end()) { | ||
| auto internal_key = InternalKey(key, 0, ValueType::kTypeValue); | ||
| total_useful_bytes += |
There was a problem hiding this comment.
Does clang-13 think this var is not used?
There was a problem hiding this comment.
Yes, I think it is set but never used.
|
@jay-zhuang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: facebook#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca Signed-off-by: tabokie <xy.tao@outlook.com>
Summary: Pull Request resolved: facebook#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca Signed-off-by: tabokie <xy.tao@outlook.com> Co-authored-by: Jay Zhuang <zjay@fb.com>
Summary: Pull Request resolved: facebook#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca
Summary: Pull Request resolved: facebook/rocksdb#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca
Summary: Pull Request resolved: facebook/rocksdb#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca
Summary: Pull Request resolved: facebook/rocksdb#9374 Test Plan: Add CI for clang13 build Reviewed By: riversand963 Differential Revision: D33522867 Pulled By: jay-zhuang fbshipit-source-id: 642756825cf0b51e35861fb847ebaee4611b76ca
Test Plan: Add CI for clang13 build