beagle r4093 - in trunk/beagle/beagled/Lucene.Net: Index upstream-changes



Author: dbera
Date: 2007-10-30 01:20:57 +0000 (Tue, 30 Oct 2007)
New Revision: 4093
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=4093&view=rev

Added:
   trunk/beagle/beagled/Lucene.Net/upstream-changes/29_delete_stale_files.patch
Modified:
   trunk/beagle/beagled/Lucene.Net/Index/IndexWriter.cs
   trunk/beagle/beagled/Lucene.Net/Index/SegmentInfos.cs
Log:
There could be unusual circumstances when Lucene does not delete its stale data. Its hard to find out why but currently there is no way of debugging this or figuring out what happened. In this situation, instead of leaving behind the huge amount of stale data (which is useless once the new data is there and is even more useless since we don't log lucene internal operations), delete the stale data and print a big WARNING that stale data is being deleted.
The logic to delete stale data is simple, other than "segments" and "deletable", all other files have their filenames mentioned in the segments file.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]