Update comment and db selection

Change-Id: I08c1437d58a7811f784a068012de5018b82f0c09
This commit is contained in:
bsitu 2013-02-13 11:50:25 -08:00
parent fdf1bc6008
commit b21e50333d
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<?php
/**
* Handles email batch for a user for database storage
* Handle user email batch ( daily/weekly ) for database storage
*/
class MWDbEchoEmailBatch extends MWEchoEmailBatch {
@ -165,7 +165,7 @@ class MWDbEchoEmailBatch extends MWEchoEmailBatch {
* @param $batchSize int
*/
public static function actuallyGetUsersToNotify( $startUserId, $batchSize ) {
$dbr = wfGetDB( DB_MASTER );
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select(
array( 'echo_email_batch' ),
array( 'eeb_user_id' ),

View file

@ -1,7 +1,7 @@
<?php
/**
* Handles email batch for a user for database storage
* Handle user email batch ( daily/ weekly )
*/
abstract class MWEchoEmailBatch {