I found a bug that's particularity evident using the 2.x-dev _attachments module. Even if there are no nodes to index, apachesolr.module will still issue a ping request and jump through various hoops because there is no easy way to tell that the $result resource has 0 results.

We can readily solve this by passing an an array of rows, rather than a resource - this will also help make the function more generic so that any list of nodes can be indexed if desired.

CommentFileSizeAuthor
#1 rows-not-resource-461506-1.patch3.04 KBpwolanin

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new3.04 KB
pwolanin’s picture

cross-ref to attachments issue: #461514: Get rows not results, better limiting on cron

committed that already

pwolanin’s picture

Status: Needs review » Fixed

committed to 6.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.