Don't copy data from journals that aren't P/C types.

        Patch by mark. 

diffs (12 lines):

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' )
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to