|
@@ -94,7 +94,7 @@ class ElasticsearchDelegator {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async init() {
|
|
async init() {
|
|
|
- return this.initIndices();
|
|
|
|
|
|
|
+ return this.normalizeIndices();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async getInfo() {
|
|
async getInfo() {
|
|
@@ -197,7 +197,7 @@ class ElasticsearchDelegator {
|
|
|
await client.indices.delete({ index: tmpIndexName });
|
|
await client.indices.delete({ index: tmpIndexName });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async initIndices() {
|
|
|
|
|
|
|
+ async normalizeIndices() {
|
|
|
const { client, indexName, aliasName } = this;
|
|
const { client, indexName, aliasName } = this;
|
|
|
|
|
|
|
|
const tmpIndexName = `${indexName}-tmp`;
|
|
const tmpIndexName = `${indexName}-tmp`;
|