25 #ifndef OM_HGUARD_CHERT_CHECK_H 26 #define OM_HGUARD_CHERT_CHECK_H 36 static void check(
const char *
tablename,
const std::string & path,
41 bool readonly, std::ostream *out_)
42 :
ChertTable(tablename_, path_, readonly), out(out_),
48 void report_block(
int m,
int n,
const uint8_t * p)
const;
52 XAPIAN_NORETURN(
void failure(
const char * msg)
const);
53 void print_key(
const uint8_t * p,
int c,
int j)
const;
54 void print_tag(
const uint8_t * p,
int c,
int j)
const;
Define the XAPIAN_NORETURN macro.
void report_cursor(int N, const Cursor *C_) const
chert_tablesize_t check_item_count
uint4 last_sequential_block
int block_usage(const uint8_t *p) const
const char * tablename
The name of the table (used when writing changesets).
Class managing a Btree table in a Chert database.
void block_check(Cursor *C_, int j, int opts)
void failure(const char *msg) const
unsigned int chert_revision_number_t
A type used to store a revision number for a table.
unsigned long long chert_tablesize_t
A type used to store the number of entries in a table.
void print_key(const uint8_t *p, int c, int j) const
ChertTableCheck(const char *tablename_, const std::string &path_, bool readonly, std::ostream *out_)
void report_block(int m, int n, const uint8_t *p) const
ChertTableCheck::report_block(m, n, p) prints the block at p, block number n, indented by m spaces...
void print_bytes(int n, const uint8_t *p) const
void print_tag(const uint8_t *p, int c, int j) const
void report_block_full(int m, int n, const uint8_t *p) const
static void check(const char *tablename, const std::string &path, chert_revision_number_t *rev_ptr, int opts, std::ostream *out)
void print_spaces(int n) const