sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r20928: LJSUP-10483: Beware note

Committer: vtroitsky
LJSUP-10483: Beware note
U   trunk/cgi-bin/ljdb.pl
Modified: trunk/cgi-bin/ljdb.pl
===================================================================
--- trunk/cgi-bin/ljdb.pl	2012-01-18 13:24:28 UTC (rev 20927)
+++ trunk/cgi-bin/ljdb.pl	2012-01-18 13:49:32 UTC (rev 20928)
@@ -447,6 +447,7 @@
 
     # get a lock from mysql
     $wait_time ||= 10;
+    # NOTE: we have to get the result of GET_LOCK, so do NOT use $db->do()
     my ($got) = $db->selectrow_array( 'SELECT GET_LOCK(?,?)', undef, $lockname, $wait_time );
     return undef unless $got;
 

Tags: livejournal, pl, sunnyman, vtroitsky
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