0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 08:21:09 +01:00

ircd::db::database::sst: Simplify assignment for inherited.

This commit is contained in:
Jason Volk 2020-08-05 21:32:01 -07:00
parent 62d34401b7
commit 72c46fa9f5

View file

@ -3862,17 +3862,9 @@ ircd::db::database::sst::info::info(const database &d_,
ircd::db::database::sst::info & ircd::db::database::sst::info &
ircd::db::database::sst::info::operator=(rocksdb::LiveFileMetaData &&md) ircd::db::database::sst::info::operator=(rocksdb::LiveFileMetaData &&md)
{ {
name = std::move(md.name);
path = std::move(md.db_path);
column = std::move(md.column_family_name); column = std::move(md.column_family_name);
size = std::move(md.size);
min_seq = std::move(md.smallest_seqno);
max_seq = std::move(md.largest_seqno);
min_key = std::move(md.smallestkey);
max_key = std::move(md.largestkey);
num_reads = std::move(md.num_reads_sampled);
level = std::move(md.level); level = std::move(md.level);
compacting = std::move(md.being_compacted); this->operator=(static_cast<rocksdb::SstFileMetaData &&>(md));
return *this; return *this;
} }