# Data should come off the master, wrapped in a transaction
$dbw = $this->getDB( DB_MASTER );
$this->beginTransaction( $dbw, __METHOD__ );
# Data should come off the master, wrapped in a transaction
$dbw = $this->getDB( DB_MASTER );
$this->beginTransaction( $dbw, __METHOD__ );
# If a list of page_ids was provided, limit results to that set of page_ids
if ( count( $args ) > 0 ) {
# If a list of page_ids was provided, limit results to that set of page_ids
if ( count( $args ) > 0 ) {
# Get "active" revisions from the page table
$this->output( "Searching for active revisions..." );
$res = $dbw->select( 'page', 'page_latest', $pageConds, __METHOD__ );
# Get "active" revisions from the page table
$this->output( "Searching for active revisions..." );
$res = $dbw->select( 'page', 'page_latest', $pageConds, __METHOD__ );
$revConds[] = 'rev_id NOT IN (' . $dbw->makeList( $latestRevs ) . ')';
}
$res = $dbw->select( 'revision', 'rev_id', $revConds, __METHOD__ );
$revConds[] = 'rev_id NOT IN (' . $dbw->makeList( $latestRevs ) . ')';
}
$res = $dbw->select( 'revision', 'rev_id', $revConds, __METHOD__ );