2017-09-30 10:44:03 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Checksum Implementation for Data Pages
|
|
|
|
***********************************************************************************************************************************/
|
2017-08-25 16:47:47 -04:00
|
|
|
#ifndef PAGE_CHECKSUM_H
|
|
|
|
#define PAGE_CHECKSUM_H
|
|
|
|
|
|
|
|
#include "common/type.h"
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2017-09-30 10:44:03 -04:00
|
|
|
uint16 pageChecksum(const unsigned char *page, int blockNo, int pageSize);
|
|
|
|
bool pageChecksumTest(const unsigned char *page, int blockNo, int pageSize, uint32 ignoreWalId, uint32 ignoreWalOffset);
|
2017-08-25 16:47:47 -04:00
|
|
|
bool pageChecksumBufferTest(
|
2017-09-30 10:44:03 -04:00
|
|
|
const unsigned char *pageBuffer, int pageBufferSize, int blockNoBegin, int pageSize, uint32 ignoreWalId,
|
|
|
|
uint32 ignoreWalOffset);
|
2017-08-25 16:47:47 -04:00
|
|
|
|
|
|
|
#endif
|