fix(all): Fix search on others bots than boot.
This commit is contained in:
parent
19ae7e1cae
commit
f86f711774
1 changed files with 6 additions and 4 deletions
|
@ -716,8 +716,10 @@ export class GBDeployer implements IGBDeployer {
|
||||||
public async rebuildIndex(instance: IGBInstance, searchSchema: any) {
|
public async rebuildIndex(instance: IGBInstance, searchSchema: any) {
|
||||||
// Prepares search.
|
// Prepares search.
|
||||||
let release;
|
let release;
|
||||||
try {
|
|
||||||
// GBLogEx.info(instance.instanceId, `Acquiring rebuildIndex mutex...`);
|
// TODO: Semaphore logic.
|
||||||
|
//try {
|
||||||
|
GBLogEx.info(instance.instanceId, `rebuildIndex running...`);
|
||||||
// release = await GBServer.globals.indexSemaphore.acquire();
|
// release = await GBServer.globals.indexSemaphore.acquire();
|
||||||
// GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`);
|
// GBLogEx.info(instance.instanceId, `Acquire rebuildIndex done.`);
|
||||||
|
|
||||||
|
@ -775,11 +777,11 @@ export class GBDeployer implements IGBDeployer {
|
||||||
|
|
||||||
// release();
|
// release();
|
||||||
GBLogEx.info(instance.instanceId, `Released rebuildIndex mutex.`);
|
GBLogEx.info(instance.instanceId, `Released rebuildIndex mutex.`);
|
||||||
} catch {
|
//} catch {
|
||||||
// if (release) {
|
// if (release) {
|
||||||
// release();
|
// release();
|
||||||
// }
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue