Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[fotobilder] r1445: decrease contest for locks on table 'cha...

Committer: gariev
decrease contest for locks on table 'challenges'. bugfix
U   trunk/lib/FB/User.pm
Modified: trunk/lib/FB/User.pm
===================================================================
--- trunk/lib/FB/User.pm	2011-05-25 06:25:43 UTC (rev 1444)
+++ trunk/lib/FB/User.pm	2011-05-26 06:51:05 UTC (rev 1445)
@@ -1999,7 +1999,7 @@
                 $extra = "AND resp=" . $db->quote($res);
             }
             $del = $db->do("DELETE FROM challenges WHERE userid=? AND challenge=? ".
-                            " AND timecreate < UNIX_TIMESTAMP()-60 " . $extra, 
+                            " AND timecreate > UNIX_TIMESTAMP()-60 " . $extra, 
                             undef, $u->{'userid'}, $chal);
         }
         return undef unless $del > 0;

Tags: fotobilder, gariev, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments