xapian-core
1.4.27
|
Replicate a database from a master server to a local copy. More...
#include <config.h>
#include "net/replicatetcpclient.h"
#include <xapian.h>
#include "gnu_getopt.h"
#include "stringutils.h"
#include "safeunistd.h"
#include <iostream>
Go to the source code of this file.
Macros | |
#define | PROG_NAME "xapian-replicate" |
#define | PROG_DESC "Replicate a database from a master server to a local copy" |
#define | OPT_HELP 1 |
#define | OPT_VERSION 2 |
#define | DEFAULT_INTERVAL 60 |
#define | READER_CLOSE_TIME 30 |
#define | DEFAULT_TIMEOUT 0 |
Functions | |
static void | show_usage () |
int | main (int argc, char **argv) |
Replicate a database from a master server to a local copy.
Definition in file xapian-replicate.cc.
#define DEFAULT_INTERVAL 60 |
Definition at line 43 of file xapian-replicate.cc.
Referenced by main(), and show_usage().
#define DEFAULT_TIMEOUT 0 |
Definition at line 49 of file xapian-replicate.cc.
Referenced by main(), and show_usage().
#define OPT_HELP 1 |
Definition at line 39 of file xapian-replicate.cc.
Referenced by main().
#define OPT_VERSION 2 |
Definition at line 40 of file xapian-replicate.cc.
Referenced by main().
#define PROG_DESC "Replicate a database from a master server to a local copy" |
Definition at line 37 of file xapian-replicate.cc.
Referenced by main().
#define PROG_NAME "xapian-replicate" |
Definition at line 36 of file xapian-replicate.cc.
Referenced by main(), and show_usage().
#define READER_CLOSE_TIME 30 |
Definition at line 46 of file xapian-replicate.cc.
Referenced by main(), and show_usage().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 73 of file xapian-replicate.cc.
References Xapian::ReplicationInfo::changed, Xapian::ReplicationInfo::changeset_count, DEFAULT_INTERVAL, DEFAULT_TIMEOUT, Xapian::ReplicationInfo::fullcopy_count, Xapian::Error::get_description(), gnu_getopt_long(), no_argument, OPT_HELP, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, READER_CLOSE_TIME, required_argument, show_usage(), and RealTime::sleep().
|
static |
Definition at line 51 of file xapian-replicate.cc.
References DEFAULT_INTERVAL, DEFAULT_TIMEOUT, PROG_NAME, READER_CLOSE_TIME, and STRINGIZE.
Referenced by main().