[dw-free] Site-wide search
[commit: http://hg.dwscoalition.org/dw-free/rev/6c29b8fbc9ab]
http://bugs.dwscoalition.org/show_bug.cgi?id=1902
Don't copy data from journals that aren't P/C types.
Patch by
mark.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1902
Don't copy data from journals that aren't P/C types.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- bin/worker/sphinx-copier
-------------------------------------------------------------------------------- diff -r b19aa1d9e107 -r 6c29b8fbc9ab bin/worker/sphinx-copier --- a/bin/worker/sphinx-copier Fri Oct 16 23:48:00 2009 -0500 +++ b/bin/worker/sphinx-copier Sat Oct 17 23:53:10 2009 +0000 @@ -34,6 +34,8 @@ sub work { my $u = LJ::load_userid( $a->{userid} ) or die "Invalid userid: $a->{userid}.\n"; + return $job->completed unless $u->is_person || $u->is_community; + my $dbto = LJ::get_dbh( 'sphinx_search' ) or die "Unable to connect to Sphinx search database.\n"; my $p_revtime = LJ::get_prop( log => 'revtime' ) --------------------------------------------------------------------------------