mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::db: Add newer checksum interposition.
This commit is contained in:
parent
91de67c5e1
commit
ca9314ce49
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue