Skip to content

Commit

Permalink
[Indices] Fix Smile-SA#3449, handling a false value of Index updated …
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
vahonc committed Nov 29, 2024
1 parent ea899cc commit 6a3891a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module-elasticsuite-indices/Model/IndexStatusProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ public function getIndexStatus($indexName, $alias): string
*/
private function isRebuilding(string $indexName, $indexDate): bool
{
if ($indexDate === false) {
// If $indexDate is false, we cannot rebuild.
return false;
}

if (!empty($this->workingIndexers)) {
foreach (array_keys($this->workingIndexers) as $indexKey) {
if (strpos((string) $indexName, $indexKey) !== false) {
Expand Down

0 comments on commit 6a3891a

Please sign in to comment.