0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 08:13:46 +02:00

ircd::db: Add newer checksum interposition.

This commit is contained in:
Jason Volk 2020-09-20 15:47:21 -07:00
parent 91de67c5e1
commit ca9314ce49

View file

@ -48,6 +48,10 @@
#error "RocksDB util/thread_local.h is not available. Cannot interpose bugfixes."
#endif
#if __has_include("table/block_based/reader_common.h")
#include "table/block_based/reader_common.h"
#endif
#include "db_has.h"
#include "db_env.h"
@ -386,3 +390,16 @@ rocksdb::BlockFetcher::CheckBlockChecksum()
//assert(false);
}
#endif
#if defined(IRCD_DB_BYPASS_CHECKSUM) \
&& __has_include("table/block_based/reader_common.h")
rocksdb::Status
rocksdb::VerifyBlockChecksum(ChecksumType type,
const char *const data,
size_t block_size,
const std::string& file_name,
uint64_t offset)
{
return Status::OK();
}
#endif