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

ircd::db: Obtain file creation time if available in metadata.

This commit is contained in:
Jason Volk 2020-09-17 03:13:29 -07:00
parent d229f32a46
commit 229efaf486

View file

@ -4065,6 +4065,12 @@ ircd::db::database::sst::info::operator=(rocksdb::SstFileMetaData &&md)
checksum_func = std::move(md.file_checksum_func_name);
#endif
#if ROCKSDB_MAJOR > 6 \
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR > 7) \
|| (ROCKSDB_MAJOR == 6 && ROCKSDB_MINOR == 7 && ROCKSDB_PATCH >= 3)
created = std::move(md.file_creation_time);
#endif
return *this;
}