@@ -373,18 +373,14 @@ public function setSettings(string $indexName, string $indexNameTmp, int $storeI
373
373
}
374
374
375
375
$ this ->replicaManager ->handleReplicas ($ indexName , $ storeId , $ indexSettings );
376
- // TODO: Reevaluate whether we need to pre-bake the temp index replicas
377
- if ($ saveToTmpIndicesToo ) {
378
- $ this ->replicaManager ->handleReplicas ($ indexNameTmp , $ storeId , $ indexSettings );
379
- }
380
376
381
377
if ($ saveToTmpIndicesToo ) {
382
378
try {
383
379
$ this ->algoliaHelper ->copySynonyms ($ indexName , $ indexNameTmp );
384
380
$ this ->algoliaHelper ->waitLastTask ();
385
381
$ this ->logger ->log ('
386
- Copying synonyms from production index to " ' . $ indexNameTmp . '" to not erase them with the index move.
387
- ' );
382
+ Copying synonyms from production index to " ' . $ indexNameTmp . '" to not erase them with the index move.
383
+ ' );
388
384
} catch (AlgoliaException $ e ) {
389
385
$ this ->logger ->error ('Error encountered while copying synonyms: ' . $ e ->getMessage ());
390
386
}
@@ -393,8 +389,8 @@ public function setSettings(string $indexName, string $indexNameTmp, int $storeI
393
389
$ this ->algoliaHelper ->copyQueryRules ($ indexName , $ indexNameTmp );
394
390
$ this ->algoliaHelper ->waitLastTask ();
395
391
$ this ->logger ->log ('
396
- Copying query rules from production index to " ' . $ indexNameTmp . '" to not erase them with the index move.
397
- ' );
392
+ Copying query rules from production index to " ' . $ indexNameTmp . '" to not erase them with the index move.
393
+ ' );
398
394
} catch (AlgoliaException $ e ) {
399
395
if ($ e ->getCode () !== 404 ) {
400
396
throw $ e ;
0 commit comments