From 4f42fbaa67da934019eb70d21e0aac6b7c272ec3 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 26 Jun 2004 01:45:30 +0000 Subject: [PATCH] DELAYED can be trouble, when edit rate exceeds insert rate --- includes/SearchUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index adad91bde4..c7b9c6103c 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -77,7 +77,7 @@ class SearchUpdate { # Strip wiki '' and ''' $text = preg_replace( "/''[']*/", " ", $text ); - $sql = "REPLACE DELAYED INTO searchindex (si_page,si_title,si_text) VALUES ({$this->mId},'" . + $sql = "REPLACE INTO searchindex (si_page,si_title,si_text) VALUES ({$this->mId},'" . wfStrencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ) . "','" . wfStrencode( $text ) . "')"; wfQuery( $sql, DB_WRITE, "SearchUpdate::doUpdate" ); -- 2.20.1