* r81084 added prefix to index name and as this index gets synced directly it has to use the same prefix
This commit is contained in:
parent
45339d4d54
commit
faebf89170
1 changed files with 3 additions and 2 deletions
|
|
@ -238,6 +238,7 @@ class SearchOracle extends SearchEngine {
|
|||
* @param $text String
|
||||
*/
|
||||
function update($id, $title, $text) {
|
||||
global $wgDBprefix;
|
||||
$dbw = wfGetDB(DB_MASTER);
|
||||
$dbw->replace('searchindex',
|
||||
array('si_page'),
|
||||
|
|
@ -253,9 +254,9 @@ class SearchOracle extends SearchEngine {
|
|||
// ALTER SESSION SET CURRENT_SCHEMA = ...
|
||||
// was used.
|
||||
$dbw->query( "CALL ctx_ddl.sync_index(" .
|
||||
$dbw->addQuotes( $dbw->getDBname() . '.si_text_idx' ) . ")" );
|
||||
$dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_text_idx' ) . ")" );
|
||||
$dbw->query( "CALL ctx_ddl.sync_index(" .
|
||||
$dbw->addQuotes( $dbw->getDBname() . '.si_title_idx' ) . ")" );
|
||||
$dbw->addQuotes( $dbw->getDBname() . '.'.$wgDBprefix.'si_title_idx' ) . ")" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue