Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27215/scripts
Modified Files:
sb_server.py
Log Message:
Fix [ 1182671 ] When cache directories are full, 1.1a1 starts slowly
We re-opened the message database for every message in the corpus directory.
We are meant to open it once and keep track of it.
Index: sb_server.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_server.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** sb_server.py 6 Apr 2005 04:13:41 -0000 1.45
--- sb_server.py 22 Apr 2005 07:15:08 -0000 1.46
***************
*** 889,895 ****
map(storage.ensureDir, [sc, hc, uc])
if self.gzipCache:
! factory = GzipFileMessageFactory()
else:
! factory = FileMessageFactory()
age = options["Storage", "cache_expiry_days"]*24*60*60
self.spamCorpus = ExpiryFileCorpus(age, factory, sc,
--- 889,895 ----
map(storage.ensureDir, [sc, hc, uc])
if self.gzipCache:
! factory = GzipFileMessageFactory(self.mdb)
else:
! factory = FileMessageFactory(self.mdb)
age = options["Storage", "cache_expiry_days"]*24*60*60
self.spamCorpus = ExpiryFileCorpus(age, factory, sc,
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins