beagle r3746 - trunk/beagle/beagled/FileSystemQueryable



Author: dbera
Date: 2007-05-19 02:14:24 +0100 (Sat, 19 May 2007)
New Revision: 3746
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3746&view=rev

Modified:
   trunk/beagle/beagled/FileSystemQueryable/DirectoryModel.cs
   trunk/beagle/beagled/FileSystemQueryable/DirectoryState.cs
   trunk/beagle/beagled/FileSystemQueryable/FileSystemQueryable.cs
Log:
Based on historical evidences, PossiblyClean was introduced to handle forceful Recrawl*(); in all of those cases, the state is explicitly set to PossiblyClean, and Compare() does the right thing for such directories. Drop the usage of PossiblyClean in all other cases, namely when a directory is asked to be marked as clean, _always_ mark it as clean (in other words, in DoneCrawlingOneDirectory(dir), the dir should _always_ be marked as clean). This is prevent any kind of recrawls.

In short, fix the ever looping of the directories if inotify limit is reached!





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