Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21522: LJSUP-11603 (optimize performance of S2 ...

Committer: ailyin
LJSUP-11603 (optimize performance of S2 comments pages)
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2012-03-22 15:01:49 UTC (rev 21521)
+++ trunk/cgi-bin/LJ/Talk.pm	2012-03-22 15:13:40 UTC (rev 21522)
@@ -1187,7 +1187,7 @@
         $sharedmode = "LOCK IN SHARE MODE";
         $u->begin_work;
     } else {
-        $u->do("LOCK TABLES log2 WRITE, talk2 READ, logbackup WRITE");
+        $u->do("LOCK TABLES log2 WRITE, talk2 READ");
     }
 
     # get count and then update.  this should be totally safe because we've either
@@ -2594,7 +2594,7 @@
     my $tz_remote;
     my $s2_ctx = [];  # ghetto fake S2 context object
     if ($remote) {
-        my $tz_remote = $remote->prop('timezone') || undef;
+        $tz_remote = $remote->prop('timezone') || undef;
     }    
 
     my $viewsome = $input->{viewsome};

Tags: ailyin, andy, livejournal, 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