22 #ifndef XAPIAN_INCLUDED_GLASS_CHANGES_H 23 #define XAPIAN_INCLUDED_GLASS_CHANGES_H 52 changes_stem(db_dir +
"/changes"),
53 oldest_changeset(0) { }
68 oldest_changeset =
rev;
77 static void check(
const std::string & changes_file);
80 #endif // XAPIAN_INCLUDED_GLASS_CHANGES_H XAPIAN_REVISION_TYPE rev
Revision number of a database.
uint4 glass_revision_number_t
The revision number of a glass database.
Definitions, types, etc for use inside glass.
static void check(const std::string &changes_file)
glass_revision_number_t get_oldest_changeset() const
void commit(glass_revision_number_t new_rev, int flags)
glass_revision_number_t oldest_changeset
The oldest changeset which might exist on disk.
void write_block(const std::string &s)
GlassChanges(const std::string &db_dir)
void set_oldest_changeset(glass_revision_number_t rev)
GlassChanges * start(glass_revision_number_t old_rev, glass_revision_number_t rev, int flags)
glass_revision_number_t max_changesets
The maximum number of changesets to keep.
int changes_fd
File descriptor to write changeset to (or -1 for none).
void write_block(const char *p, size_t len)