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;
unsigned int max_changesets
The maximum number of changesets which should be kept in the database.
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
XAPIAN_REVISION_TYPE rev
Revision number of a database.
double end_time(double timeout)
Return the end time for a timeout in timeout seconds.
bool check_revision_at_least(const std::string &rev, const std::string &target) const
Virtual methods of DatabaseReplicator.
std::string db_dir
Path of database.
Base class for database replicator objects.
Class to manage replication of databases.
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.
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 get_uuid() const
Virtual methods of DatabaseReplicator.
ChertDatabaseReplicator(const std::string &db_dir_)
std::string apply_changeset_from_conn(RemoteConnection &conn, double end_time, bool valid) const
Virtual methods of DatabaseReplicator.