Committer: wisest-owl
LJSUP-11381: Create counters for monitoringU 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;