Index: trunk/phase3/maintenance/updateSearchIndex.inc |
— | — | @@ -20,8 +20,8 @@ |
21 | 21 | output( "Updating searchindex between $start and $end\n" ); |
22 | 22 | |
23 | 23 | # Select entries from recentchanges which are on top and between the specified times |
24 | | - $start = $dbw->strencode( $start ); |
25 | | - $end = $dbw->strencode( $end ); |
| 24 | + $start = $dbw->strencode( $dbw->timestamp( $start ) ); |
| 25 | + $end = $dbw->strencode( $dbw->timestamp( $end ) ); |
26 | 26 | |
27 | 27 | $page = $dbw->tableName( 'page' ); |
28 | 28 | $sql = "SELECT rc_cur_id,rc_type,rc_moved_to_ns,rc_moved_to_title FROM $recentchanges |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | # Unlock and lock again |
92 | 92 | # Since the lock is low-priority, queued reads will be able to complete |
93 | 93 | function relockSearchindex( &$db ) { |
94 | | - unlockSearchindex( $db ); |
| 94 | + lockSearchindex( $db ); |
95 | 95 | $db->unlockTables( 'updateSearchIndex.inc ' . __METHOD__ ); |
96 | 96 | } |
97 | 97 | |