From 89dad12b3510f2540c6678e68145d922c7db5a7b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 13 Jun 2012 19:32:09 -0400 Subject: [PATCH] update --- Assistant.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assistant.hs b/Assistant.hs index 3a3bcf7e08..b72f9a7e7d 100644 --- a/Assistant.hs +++ b/Assistant.hs @@ -10,12 +10,13 @@ - The initial thread run, double forks to background, starts other - threads, and then stops, waiting for them to terminate, - or for a ctrl-c. - - Thread 2: inotify + - Thread 2: watcher - Notices new files, and calls handlers for events, queuing changes. - Thread 3: inotify internal - Used by haskell inotify library to ensure inotify event buffer is - kept drained. - - Thread 4: inotify initial scan + - Thread 4: inotify startup scanner + - Scans the tree and registers inotify watches for each directory. - A MVar lock is used to prevent other inotify handlers from running - until this is complete. - Thread 5: committer @@ -23,6 +24,8 @@ - index, then commits. - Thread 6: status logger - Wakes up periodically and records the daemon's status to disk. + - Thread 7: sanity checker + - Wakes up periodically (rarely) and does sanity checks. - - ThreadState: (MVar) - The Annex state is stored here, which allows resuscitating the