xapian-core  1.4.27
Macros | Functions
xapian-replicate.cc File Reference

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>
+ Include dependency graph for xapian-replicate.cc:

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)
 

Detailed Description

Replicate a database from a master server to a local copy.

Definition in file xapian-replicate.cc.

Macro Definition Documentation

◆ DEFAULT_INTERVAL

#define DEFAULT_INTERVAL   60

Definition at line 43 of file xapian-replicate.cc.

Referenced by main(), and show_usage().

◆ DEFAULT_TIMEOUT

#define DEFAULT_TIMEOUT   0

Definition at line 49 of file xapian-replicate.cc.

Referenced by main(), and show_usage().

◆ OPT_HELP

#define OPT_HELP   1

Definition at line 39 of file xapian-replicate.cc.

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

Definition at line 40 of file xapian-replicate.cc.

Referenced by main().

◆ PROG_DESC

#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().

◆ PROG_NAME

#define PROG_NAME   "xapian-replicate"

Definition at line 36 of file xapian-replicate.cc.

Referenced by main(), and show_usage().

◆ READER_CLOSE_TIME

#define READER_CLOSE_TIME   30

Definition at line 46 of file xapian-replicate.cc.

Referenced by main(), and show_usage().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ show_usage()

static void show_usage ( )
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().