Switch to unified view

a/src/common/rclinit.cpp b/src/common/rclinit.cpp
...
...
122
    if (config->getConfParam("unac_except_trans", unacex) && !unacex.empty()) 
122
    if (config->getConfParam("unac_except_trans", unacex) && !unacex.empty()) 
123
    unac_set_except_translations(unacex.c_str());
123
    unac_set_except_translations(unacex.c_str());
124
124
125
#ifndef IDX_THREADS
125
#ifndef IDX_THREADS
126
    ExecCmd::useVfork(true);
126
    ExecCmd::useVfork(true);
127
#else
128
    bool intern_noThr = config->getThrConf(RclConfig::ThrIntern).first == -1;
129
    bool split_noThr =  config->getThrConf(RclConfig::ThrSplit).first == -1;
130
    bool write_noThr = config->getThrConf(RclConfig::ThrDbWrite).first == -1;
131
    if (intern_noThr && split_noThr && write_noThr) {
132
  LOGDEB0(("rclinit: single-threaded execution: use vfork\n"));
133
  ExecCmd::useVfork(true);
134
    } else {
135
  LOGDEB0(("rclinit: multi-threaded execution: do not use vfork\n"));
136
  ExecCmd::useVfork(false);
137
    }
127
#endif
138
#endif
128
139
129
    int flushmb;
140
    int flushmb;
130
    if (config->getConfParam("idxflushmb", &flushmb) && flushmb > 0) {
141
    if (config->getConfParam("idxflushmb", &flushmb) && flushmb > 0) {
131
    LOGDEB1(("rclinit: idxflushmb=%d, set XAPIAN_FLUSH_THRESHOLD to 10E6\n",
142
    LOGDEB1(("rclinit: idxflushmb=%d, set XAPIAN_FLUSH_THRESHOLD to 10E6\n",