fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-11-02 10:50 am

[dw-free] theschwartz errors

[commit: http://hg.dwscoalition.org/dw-free/rev/485f2b7ff657]

http://bugs.dwscoalition.org/show_bug.cgi?id=3121

Skip early, in case we have a row in log2 but not in logtext2.

Patch by [personal profile] fu.

Files modified:
  • bin/worker/sphinx-copier
--------------------------------------------------------------------------------
diff -r 75d1841dd16f -r 485f2b7ff657 bin/worker/sphinx-copier
--- a/bin/worker/sphinx-copier	Mon Nov 01 22:34:58 2010 +0800
+++ b/bin/worker/sphinx-copier	Tue Nov 02 18:49:58 2010 +0800
@@ -112,6 +112,9 @@ sub work {
         );
         die $dbfrom->errstr if $dbfrom->err;
 
+        # just make sure, in case we don't have a corresponding logtext2 row
+        next unless $row;
+
         # we need extra security bits for some metadata.  we have to do this this way because
         # it makes it easier to later do searches on various combinations of things at the same
         # time...  also, even though these are bits, we're not going to ever use them as actual bits.
--------------------------------------------------------------------------------