r10324 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10323‎ | r10324 | r10325 >
Date:23:27, 30 July 2005
Author:vibber
Status:old
Tags:
Comment:
include optimized flush option
Modified paths:
  • /trunk/extensions/MWSearch/MWSearchUpdater.php (modified) (history)
  • /trunk/extensions/MWSearch/luceneUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MWSearch/MWSearchUpdater.php
@@ -84,6 +84,17 @@
8585 }
8686
8787 /**
 88+ * Request that the daemon flush and reopen all indexes, without changing
 89+ * the global is-running state, and that indexes should be optimized when
 90+ * closed.
 91+ * @return bool
 92+ * @static
 93+ */
 94+ function optimize() {
 95+ return MWSearchUpdater::sendRPC( 'searchupdater.optimize' );
 96+ }
 97+
 98+ /**
8899 * Request that the daemon flush and reopen a given index, without changing
89100 * the global is-running state.
90101 * @return bool
Index: trunk/extensions/MWSearch/luceneUpdate.php
@@ -35,6 +35,9 @@
3636 case 'quit':
3737 $ret = MWSearchUpdater::quit();
3838 break;
 39+case 'optimize':
 40+ $ret = MWSearchUpdater::optimize();
 41+ break;
3942 case 'update':
4043 $title = Title::newFromText( $args[1] );
4144 if( is_null( $title ) ) {

Status & tagging log