Skip to content

Commit 38bd2e8

Browse files
committed
BUGFIX: Pass target workspace name to node indexer
In the IndexingJob and RemovalJob the target workspace name was not passed on to the node indexer upon job execution. This lead to wrong nodes being indexed, at times.
1 parent 7115321 commit 38bd2e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/IndexingJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function execute(QueueInterface $queue, Message $message)
5151
$this->nodeIndexer->setIndexNamePostfix($this->indexPostfix);
5252
$this->log(sprintf('action=indexing step=started node=%s', $currentNode->getIdentifier()));
5353

54-
$this->nodeIndexer->indexNode($currentNode);
54+
$this->nodeIndexer->indexNode($currentNode, $this->targetWorkspaceName);
5555
}
5656

5757
$this->nodeIndexer->flush();

Classes/RemovalJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function execute(QueueInterface $queue, Message $message)
5858
$this->nodeIndexer->setIndexNamePostfix($this->indexPostfix);
5959
$this->log(sprintf('action=removal step=started node=%s', $currentNode->getIdentifier()));
6060

61-
$this->nodeIndexer->removeNode($currentNode);
61+
$this->nodeIndexer->removeNode($currentNode, $this->targetWorkspaceName);
6262
}
6363

6464
$this->nodeIndexer->flush();

0 commit comments

Comments
 (0)