madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21269: LJSUP-9307: delayed entries poster worke...

Committer: sbelyaev
LJSUP-9307: delayed entries poster worker
U   trunk/bin/worker/delayed-entries-poster
Modified: trunk/bin/worker/delayed-entries-poster
===================================================================
--- trunk/bin/worker/delayed-entries-poster	2012-02-29 09:23:13 UTC (rev 21268)
+++ trunk/bin/worker/delayed-entries-poster	2012-02-29 12:28:41 UTC (rev 21269)
@@ -23,7 +23,8 @@
 
 sub work {
     foreach my $cluster_id (@LJ::CLUSTERS) {
-        my $dbr = LJ::DBUtil->get_inactive_db($cluster_id, __PACKAGE__->verbose);
+        my $cid = LJ::master_role($cluster_id);
+        my $dbr = LJ::get_dbh($cid);
         LJ::DelayedEntry::Scheduler::on_pulse($cluster_id, $dbr, __PACKAGE__->verbose);
     }
 

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