23 #ifndef XAPIAN_INCLUDED_GLASS_DATABASEREPLICATOR_H 24 #define XAPIAN_INCLUDED_GLASS_DATABASEREPLICATOR_H 65 const std::string & target)
const;
A RemoteConnection object provides a bidirectional connection to another RemoteConnection object on a...
bool check_revision_at_least(const std::string &rev, const std::string &target) const
Virtual methods of DatabaseReplicator.
XAPIAN_REVISION_TYPE rev
Revision number of a database.
void process_changeset_chunk_blocks(Glass::table_type table, unsigned v, std::string &buf, RemoteConnection &conn, double end_time) const
Process a chunk which holds a list of changed blocks in the database.
double end_time(double timeout)
Return the end time for a timeout in timeout seconds.
int fds[Glass::MAX_]
File descriptors for writing to each table.
Definitions, types, etc for use inside glass.
std::string db_dir
Path of database.
GlassDatabaseReplicator(const std::string &db_dir_)
Base class for database replicator objects.
Class to manage replication of databases.
std::string apply_changeset_from_conn(RemoteConnection &conn, double end_time, bool valid) const
Virtual methods of DatabaseReplicator.
~GlassDatabaseReplicator()
std::string get_uuid() const
Virtual methods of DatabaseReplicator.
void process_changeset_chunk_version(std::string &buf, RemoteConnection &conn, double end_time) const
Process a chunk which holds a version file.