vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21403: LJSUP-11496 (optimize get_daycounts for ...

Committer: vad
LJSUP-11496 (optimize get_daycounts for ONTD)
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-03-13 19:10:30 UTC (rev 21402)
+++ trunk/cgi-bin/LJ/User.pm	2012-03-13 21:03:45 UTC (rev 21403)
@@ -8234,9 +8234,9 @@
     };
 
     my ($locked) = $dbcr->selectrow_array(
-        'SELECT GET_LOCK(?,10)', undef, $memkey->[1] );
+        'SELECT GET_LOCK(?,2)', undef, $memkey->[1] );
 
-    return unless $locked; ## 10 seconds expired
+    return [] unless $locked; ## 2 seconds expired
 
     $list = LJ::MemCache::get($memkey);
     if ($list) {

Tags: livejournal, pm, vad, vadvs
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