Came across this error while running a node access rebuild. It appears that this function has been removed and replaced with apachesolr_set_last_index_updated(). So, I've replaced:

apachesolr_index_set_last_updated();

with

apachesolr_set_last_index_updated(apachesolr_default_environment());

This works for me, but I'm not totally sure about the apachesolr_default_environment() part. Do I need to worry about other environments? A patch of this change is attached.

Comments

nick_vh’s picture

Status: Active » Needs work

Good catch,

I suppose we should somehow find out for what environment someone would want to rebuild the nodeaccess? Is there any info that would allow us to do so?

pwolanin’s picture

Status: Needs work » Needs review

We only index to the default environment right now, so I think this is ok.

pwolanin’s picture

Status: Needs review » Needs work

Ugh, I think that's the totally wrong function to call.

pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new1.25 KB
pwolanin’s picture

StatusFileSize
new2.91 KB

plus new test assertions

pwolanin’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

committed to 7.x

nick_vh’s picture

Status: Patch (to be ported) » Fixed

Committed to 6.x-3.x

nick_vh’s picture

Status: Fixed » Closed (fixed)