wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r21741: LJSUP-11381: Create counters for monitor...

Committer: wisest-owl
LJSUP-11381: Create counters for monitoring

U   trunk/cgi-bin/LJ/User/PropStorage/DB.pm
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/LJ/User/PropStorage/DB.pm
===================================================================
--- trunk/cgi-bin/LJ/User/PropStorage/DB.pm	2012-04-18 11:30:23 UTC (rev 21740)
+++ trunk/cgi-bin/LJ/User/PropStorage/DB.pm	2012-04-18 12:12:32 UTC (rev 21741)
@@ -43,6 +43,8 @@
         };
     }
 
+    $LJ::COUNT_LOAD_PROPS_MULTI_DB++;
+
     my $res = $dbh->selectall_arrayref($sql, { 'Slice' => {} }, $userid);
 
     foreach my $row (@$res) {

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2012-04-18 11:30:23 UTC (rev 21740)
+++ trunk/cgi-bin/ljlib.pl	2012-04-18 12:12:32 UTC (rev 21741)
@@ -2339,7 +2339,8 @@
 
     $LJ::VERTICALS_FORCE_USE_MASTER = 0;    # It need to load a new created category from master insteed slave server.
 
-    $LJ::COUNT_LOAD_PROPS_MULTI = 0;        # Counter for number of requests function LJ::User::load_user_props_multi()
+    $LJ::COUNT_LOAD_PROPS_MULTI    = 0;     # Counter for number of requests function LJ::User::load_user_props_multi()
+    $LJ::COUNT_LOAD_PROPS_MULTI_DB = 0;     # Counter for number of requests for props load to DB
 
     $LJ::CACHE_REMOTE_BOUNCE_URL = undef;
     LJ::Userpic->reset_singletons;

Tags: livejournal, pl, pm, wisest-owl
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