compute indexes in child processes
This commit is contained in:
@@ -238,6 +238,19 @@ module.exports.create = function (config, cb) {
|
||||
if (err) { throw new Error(err); }
|
||||
Env.blobStore = blob;
|
||||
}));
|
||||
}).nThen(function (w) {
|
||||
HK.initializeIndexWorkers(Env, {
|
||||
filePath: config.filePath,
|
||||
archivePath: config.archivePath,
|
||||
channelExpirationMs: config.channelExpirationMs,
|
||||
verbose: config.verbose,
|
||||
openFileLimit: config.openFileLimit,
|
||||
}, w(function (err, computeIndex) {
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
Env.computeIndex = computeIndex;
|
||||
}));
|
||||
}).nThen(function (w) {
|
||||
// create a task store
|
||||
require("./storage/tasks").create(config, w(function (e, tasks) {
|
||||
|
||||
Reference in New Issue
Block a user