Skip to content

Commit

Permalink
[Indices] Fix #3449, handling a false value of Index updated date
Browse files Browse the repository at this point in the history
  • Loading branch information
vahonc committed Dec 2, 2024
1 parent 4117833 commit 1310b13
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 @@ -117,6 +117,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($indexName, $indexKey) !== false) {
Expand Down

0 comments on commit 1310b13

Please sign in to comment.