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

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

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

U   trunk/cgi-bin/LJ/User.pm
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-03-26 08:34:38 UTC (rev 21539)
+++ trunk/cgi-bin/LJ/User.pm	2012-03-26 08:48:07 UTC (rev 21540)
@@ -6770,6 +6770,8 @@
     $users = { map { $_->{'userid'} => $_ } grep { $_->{'statusvis'} ne 'X' and $_->{'clusterid'} } grep { ref } @$users };
     return unless %$users;
 
+    $LJ::COUNT_LOAD_PROPS_MULTI++;
+
     my $groups = LJ::User::PropStorage->get_handler_multi(\@$props);
     my $memcache_available = @LJ::MEMCACHE_SERVERS;
     $use_master = $memcache_available || $use_master;

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2012-03-26 08:34:38 UTC (rev 21539)
+++ trunk/cgi-bin/ljlib.pl	2012-03-26 08:48:07 UTC (rev 21540)
@@ -2333,6 +2333,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::CACHE_REMOTE_BOUNCE_URL = undef;
     LJ::Userpic->reset_singletons;
     LJ::Comment->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