Index: trunk/phase3/maintenance/purgeStaleMemcachedText.php |
— | — | @@ -15,7 +15,18 @@ |
16 | 16 | |
17 | 17 | for ( $i = $latestReplicatedTextId; $i < $maxTextId; $i++ ) { |
18 | 18 | $key = wfMemcKey( 'revisiontext', 'textid', $i ); |
19 | | - $wgMemc->delete( $key ); |
| 19 | + |
| 20 | + while (1) { |
| 21 | + if (! $wgMemc->delete( $key ) ) { |
| 22 | + echo "Memcache delete for $key returned false\n"; |
| 23 | + } |
| 24 | + if ( $wgMemc->get( $key ) ) { |
| 25 | + echo "There's still content in $key!\n"; |
| 26 | + } else { |
| 27 | + break; |
| 28 | + } |
| 29 | + } |
| 30 | + |
20 | 31 | } |
21 | 32 | } |
22 | 33 | |