r91364 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91363‎ | r91364 | r91365 >
Date:18:40, 2 July 2011
Author:brion
Status:ok
Tags:
Comment:
OAIRepo tweak: make the number of records returned in ListRecords requests configurable by setting $oaiChunkSize (default is 50, the previous hardcoded value)

May or may not help with bug 26304.
Modified paths:
  • /trunk/extensions/OAI/OAIRepo.php (modified) (history)
  • /trunk/extensions/OAI/OAIRepo_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OAI/OAIRepo_body.php
@@ -538,7 +538,8 @@
539539 }
540540
541541 function chunkSize() {
542 - return 50;
 542+ global $oaiChunkSize;
 543+ return $oaiChunkSize;
543544 }
544545
545546 function baseUrl() {
Index: trunk/extensions/OAI/OAIRepo.php
@@ -55,6 +55,13 @@
5656 */
5757 $oaiAuditDatabase = false;
5858
 59+/**
 60+ * Number of records to return in each ListRecords or ListIdentifiers request.
 61+ * Additional records will be available by making another request using the
 62+ * ResumptionToken returned.
 63+ */
 64+$oaiChunkSize = 50;
 65+
5966 $wgExtensionCredits['specialpage'][] = array(
6067 'path' => __FILE__,
6168 'name' => 'OAIRepository',

Follow-up revisions

RevisionCommit summaryAuthorDate
r93770MFT r91364reedy17:01, 2 August 2011
r95169Bug 26304 - OAIRepository fatal error stops search indexing...reedy18:39, 21 August 2011
r95628MFT to REL1_18 (extensions)...hashar15:32, 28 August 2011

Status & tagging log