r10243 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10242‎ | r10243 | r10244 >
Date:19:53, 22 July 2005
Author:vibber
Status:old
Tags:
Comment:
Committing live fix: don't delete entire index on every flush ;)
Modified paths:
  • /trunk/mwsearch/Search/SearchState.cs (modified) (history)

Diff [purge]

Index: trunk/mwsearch/Search/SearchState.cs
@@ -124,7 +124,7 @@
125125 OpenReader();
126126 _errorOnOpen = false;
127127 } catch (IOException e) {
128 - log.Error(dbname + ": warning: open for read failed");
 128+ log.Error(dbname + ": warning: open for read failed" + e);
129129 _errorOnOpen = true;
130130 }
131131 mydbname = dbname;
@@ -258,7 +258,7 @@
259259 Reopen();
260260
261261 log.Info("Opening index writer for " + mydbname);
262 - writer = new IndexWriter(indexpath, analyzer, true);
 262+ writer = new IndexWriter(indexpath, analyzer, false);
263263 writable = true;
264264 //updatesWritten = 0;
265265 }

Status & tagging log