vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r22975: LJSUP-13790: Load entry prop names/ids f...

Committer: vad
LJSUP-13790: Load entry prop names/ids from master db, not slave
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2012-09-26 11:33:20 UTC (rev 22974)
+++ trunk/cgi-bin/ljlib.pl	2012-09-26 11:45:10 UTC (rev 22975)
@@ -1729,7 +1729,7 @@
         next unless defined $keyname{$t};
         next if defined $LJ::CACHE_PROP{$t};
         my $tablename = $t eq "rate" ? "ratelist" : "${t}proplist";
-        $dbr ||= LJ::get_db_reader();
+        $dbr ||= LJ::get_db_writer();
         my $sth = $dbr->prepare("SELECT * FROM $tablename");
         $sth->execute;
         while (my $p = $sth->fetchrow_hashref) {

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