|
a/src/index/recollindex.cpp |
|
b/src/index/recollindex.cpp |
|
... |
|
... |
86 |
// Receive status updates from the ongoing indexing operation
|
86 |
// Receive status updates from the ongoing indexing operation
|
87 |
// Also check for an interrupt request and return the info to caller which
|
87 |
// Also check for an interrupt request and return the info to caller which
|
88 |
// should subsequently orderly terminate what it is doing.
|
88 |
// should subsequently orderly terminate what it is doing.
|
89 |
class MyUpdater : public DbIxStatusUpdater {
|
89 |
class MyUpdater : public DbIxStatusUpdater {
|
90 |
public:
|
90 |
public:
|
91 |
MyUpdater(RclConfig *config)
|
91 |
MyUpdater(const RclConfig *config)
|
92 |
: m_prevphase(DbIxStatus::DBIXS_NONE)
|
92 |
: m_prevphase(DbIxStatus::DBIXS_NONE)
|
93 |
{
|
93 |
{
|
94 |
m_fd = open(config->getIdxStatusFile().c_str(),
|
94 |
m_fd = open(config->getIdxStatusFile().c_str(),
|
95 |
O_WRONLY|O_CREAT|O_TRUNC, 0600);
|
95 |
O_WRONLY|O_CREAT|O_TRUNC, 0600);
|
96 |
if (m_fd < 0)
|
96 |
if (m_fd < 0)
|
|
... |
|
... |
163 |
cerr << "Cannot create indexer" << endl;
|
163 |
cerr << "Cannot create indexer" << endl;
|
164 |
exit(1);
|
164 |
exit(1);
|
165 |
}
|
165 |
}
|
166 |
}
|
166 |
}
|
167 |
|
167 |
|
168 |
void rclIxIonice(RclConfig *config)
|
168 |
void rclIxIonice(const RclConfig *config)
|
169 |
{
|
169 |
{
|
170 |
string clss, classdata;
|
170 |
string clss, classdata;
|
171 |
if (!config->getConfParam("monioniceclass", clss) || clss.empty())
|
171 |
if (!config->getConfParam("monioniceclass", clss) || clss.empty())
|
172 |
clss = "3";
|
172 |
clss = "3";
|
173 |
config->getConfParam("monioniceclassdata", classdata);
|
173 |
config->getConfParam("monioniceclassdata", classdata);
|