24 #ifndef XAPIAN_INCLUDED_CHERT_DATABASEREPLICATOR_H
25 #define XAPIAN_INCLUDED_CHERT_DATABASEREPLICATOR_H
45 int changes_fd)
const;
54 int changes_fd)
const;
62 const std::string & target)
const;
void process_changeset_chunk_base(const std::string &tablename, std::string &buf, RemoteConnection &conn, double end_time, int changes_fd) const
Process a chunk which holds a base block.
std::string db_dir
Path of database.
unsigned int max_changesets
The maximum number of changesets which should be kept in the database.
void process_changeset_chunk_blocks(const std::string &tablename, std::string &buf, RemoteConnection &conn, double end_time, int changes_fd) const
Process a chunk which holds a list of changed blocks in the database.
ChertDatabaseReplicator(const std::string &db_dir_)
bool check_revision_at_least(const std::string &rev, const std::string &target) const
Virtual methods of DatabaseReplicator.
std::string apply_changeset_from_conn(RemoteConnection &conn, double end_time, bool valid) const
Read and apply the next changeset.
std::string get_uuid() const
Get a UUID for the replica.
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
Base class for database replicator objects.
Class to manage replication of databases.
double end_time(double timeout)
Return the end time for a timeout in timeout seconds.
XAPIAN_REVISION_TYPE rev
Revision number of a database.