Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the following issue: ``` ./db/version_edit.h:76:8: error: implicitly-declared ‘constexpr rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)’ is deprecated [-Werror=deprecated-copy] 76 | struct FileMetaData { | ^~~~~~~~~~~~ ./db/version_edit.h:47:19: note: because ‘rocksdb::FileDescriptor’ has user-provided ‘rocksdb::FileDescriptor& rocksdb::FileDescriptor::operator=(const rocksdb::FileDescriptor&)’ 47 | FileDescriptor& operator=(const FileDescriptor& fd) { | ^~~~~~~~ In file included from /usr/include/c++/9/bits/stl_algobase.h:64, from /usr/include/c++/9/bits/char_traits.h:39, from /usr/include/c++/9/string:40, from ./db/builder.h:9, from db/builder.cc:10: /usr/include/c++/9/bits/stl_pair.h:312:51: note: synthesized method ‘rocksdb::FileMetaData::FileMetaData(const rocksdb::FileMetaData&)’ first required here 312 | : first(std::forward<_U1>(__x)), second(__y) { } | ^ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:1892: db/builder.o] Error 1 make[1]: Leaving directory '/root/lkp-tests/tmp-pkg/rocksdb/src/rocksdb-5.15.10' ``` The community has sent a patch to fix this problem(facebook/rocksdb#5553), but there is no release corresponding version, so download the code of the main branch first. Signed-off-by: Zhou Hao <[email protected]> Signed-off-by: Philip Li <[email protected]>
- Loading branch information