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:
parent
d229f32a46
commit
229efaf486
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue