|
a/src/common/rclinit.cpp |
|
b/src/common/rclinit.cpp |
|
... |
|
... |
28 |
#include "debuglog.h"
|
28 |
#include "debuglog.h"
|
29 |
#include "rclconfig.h"
|
29 |
#include "rclconfig.h"
|
30 |
#include "rclinit.h"
|
30 |
#include "rclinit.h"
|
31 |
#include "pathut.h"
|
31 |
#include "pathut.h"
|
32 |
#include "unac.h"
|
32 |
#include "unac.h"
|
|
|
33 |
#include "smallut.h"
|
33 |
|
34 |
|
34 |
static const int catchedSigs[] = {SIGHUP, SIGINT, SIGQUIT, SIGTERM,
|
35 |
static const int catchedSigs[] = {SIGHUP, SIGINT, SIGQUIT, SIGTERM,
|
35 |
SIGUSR1, SIGUSR2};
|
36 |
SIGUSR1, SIGUSR2};
|
36 |
|
37 |
|
37 |
RclConfig *recollinit(RclInitFlags flags,
|
38 |
RclConfig *recollinit(RclInitFlags flags,
|
|
... |
|
... |
117 |
// Init Unac translation exceptions
|
118 |
// Init Unac translation exceptions
|
118 |
string unacex;
|
119 |
string unacex;
|
119 |
if (config->getConfParam("unac_except_trans", unacex) && !unacex.empty())
|
120 |
if (config->getConfParam("unac_except_trans", unacex) && !unacex.empty())
|
120 |
unac_set_except_translations(unacex.c_str());
|
121 |
unac_set_except_translations(unacex.c_str());
|
121 |
|
122 |
|
|
|
123 |
// Init langtocode() static table
|
|
|
124 |
langtocode("");
|
|
|
125 |
|
122 |
int flushmb;
|
126 |
int flushmb;
|
123 |
if (config->getConfParam("idxflushmb", &flushmb) && flushmb > 0) {
|
127 |
if (config->getConfParam("idxflushmb", &flushmb) && flushmb > 0) {
|
124 |
LOGDEB1(("rclinit: idxflushmb=%d, set XAPIAN_FLUSH_THRESHOLD to 10E6\n",
|
128 |
LOGDEB1(("rclinit: idxflushmb=%d, set XAPIAN_FLUSH_THRESHOLD to 10E6\n",
|
125 |
flushmb));
|
129 |
flushmb));
|
126 |
static const char *cp = "XAPIAN_FLUSH_THRESHOLD=1000000";
|
130 |
static const char *cp = "XAPIAN_FLUSH_THRESHOLD=1000000";
|