25 #ifndef OM_HGUARD_GLASS_CHECK_H 26 #define OM_HGUARD_GLASS_CHECK_H 39 const char *
tablename,
const std::string & path,
int fd,
46 bool readonly_, std::ostream *out_)
47 :
GlassTable(tablename_, path_, readonly_), out(out_) { }
50 bool readonly_, std::ostream *out_)
51 :
GlassTable(tablename_, fd, offset_, readonly_), out(out_) { }
56 void report_block(
int m,
int n,
const uint8_t * p)
const;
60 void print_key(
const uint8_t * p,
int c,
int j)
const;
61 void print_tag(
const uint8_t * p,
int c,
int j)
const;
Define the XAPIAN_NORETURN macro.
Class managing a Btree table in a Glass database.
The GlassVersion class manages the revision files.
void print_tag(const uint8_t *p, int c, int j) const
void report_block(int m, int n, const uint8_t *p) const
GlassTableCheck::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
const char * tablename
The name of the table (used when writing changesets).
GlassTableCheck(const char *tablename_, int fd, off_t offset_, bool readonly_, std::ostream *out_)
GlassTableCheck(const char *tablename_, const std::string &path_, bool readonly_, std::ostream *out_)
void report_cursor(int N, const Glass::Cursor *C_) const
void report_block_full(int m, int n, const uint8_t *p) const
static GlassTableCheck * check(const char *tablename, const std::string &path, int fd, off_t offset_, const GlassVersion &version_file, int opts, std::ostream *out)
void block_check(Glass::Cursor *C_, int j, int opts, GlassFreeListChecker &flcheck)
int block_usage(const uint8_t *p) const
void print_key(const uint8_t *p, int c, int j) const
void print_spaces(int n) const