r107594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107593‎ | r107594 | r107595 >
Date:20:37, 29 December 2011
Author:khorn
Status:ok
Tags:
Comment:
followup r107593
Additional tweak to avoid realtime trickle.
Modified paths:
  • /trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php
@@ -167,7 +167,7 @@
168168 $selector = "antimessage = 'true'";
169169 $antimessages = stompFetchMessages( 'cc-limbo', $selector, 1000 );
170170 $count = 0;
171 - while ( count( $antimessages ) && $this->keepGoing() ){ //if there's an antimessage, we can ack 'em all right now.
 171+ while ( count( $antimessages ) > 10 && $this->keepGoing() ){ //if there's an antimessage, we can ack 'em all right now.
172172 $count += count( $antimessages );
173173 foreach ( $antimessages as $message ){
174174 //add the correlation ID to the ack bucket.

Follow-up revisions

RevisionCommit summaryAuthorDate
r107597MFT r107593, r107594khorn20:47, 29 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107593Tweaked the redundancy a little to avoid processing a trickle in realtime, an...khorn20:34, 29 December 2011

Status & tagging log