From 560eb12f689a62d728b9ec75ff8a68e3076f20c2 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 13 Oct 2020 15:28:55 -0700 Subject: [PATCH] ircd::db::database::sst: Add file id integer to info struct. --- include/ircd/db/sst.h | 1 + ircd/db_database.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/include/ircd/db/sst.h b/include/ircd/db/sst.h index 5be01215b..ff8f57104 100644 --- a/include/ircd/db/sst.h +++ b/include/ircd/db/sst.h @@ -35,6 +35,7 @@ struct ircd::db::database::sst::info std::string compression; std::string checksum; std::string checksum_func; + uint64_t id {0}; uint64_t format {0}; uint64_t cfid {0}; uint64_t size {0}; diff --git a/ircd/db_database.cc b/ircd/db_database.cc index 948e5329f..d08e74d0e 100644 --- a/ircd/db_database.cc +++ b/ircd/db_database.cc @@ -3723,6 +3723,7 @@ ircd::db::database::sst::info::operator=(rocksdb::LiveFileMetaData &&md) ircd::db::database::sst::info & ircd::db::database::sst::info::operator=(rocksdb::SstFileMetaData &&md) { + id = std::move(md.file_number); name = std::move(md.name); path = std::move(md.db_path); size = std::move(md.size);