1. 21 Aug, 2000 1 commit
    • Ken Manheimer's avatar
      Make non-persistent client cache use tempfile.TemporaryFile, so the · 0ddb4ae2
      Ken Manheimer authored
      tempfiles do *not* perpetually accumulate.  (TemporaryFile reliably is
      removed when the program is done with it, under both windows and
      unix.)
      
      ClientCache.__init__(): Set up the first TemporaryFile, and set both
      self._p file names to None, to signify use of temp files.
      
      ClientCache.checkSize(): Switch over to other persistent cache file if
      self._p has names, or a new TemporaryFile if they're None.
      
      (I included some comments to the code i touched, to ease the passage
      of anyone else who winds up on that path...)
      0ddb4ae2
  2. 18 Aug, 2000 5 commits
  3. 12 Aug, 2000 2 commits
  4. 10 Aug, 2000 7 commits
  5. 08 Aug, 2000 4 commits
  6. 07 Aug, 2000 8 commits
  7. 04 Aug, 2000 1 commit
  8. 03 Aug, 2000 1 commit
  9. 01 Aug, 2000 1 commit
  10. 26 Jul, 2000 1 commit
  11. 12 Jul, 2000 1 commit
  12. 10 Jul, 2000 2 commits
  13. 07 Jul, 2000 6 commits
    • Jim Fulton's avatar
      *** empty log message *** · 667e6128
      Jim Fulton authored
      667e6128
    • Jim Fulton's avatar
      The (commit) invalidate method incorrectly sent messages that are part · da601241
      Jim Fulton authored
      of the startup invalidation protocol.
      da601241
    • Jim Fulton's avatar
    • Jim Fulton's avatar
      Changed the way that the storage is closed. Our close method may be · 0c744101
      Jim Fulton authored
      called from a separate thread than the async main loop. We only want
      the async main loop to close our _call (rpc) object. Instead of
      closing it directly, we call closeIntensionally(), which, in return,
      requests that the async main loop closes it, via the select trigger.
      0c744101
    • Jim Fulton's avatar
      Added a separate call to check the cache size so that we only check · 90d90a12
      Jim Fulton authored
      when a transaction is about to be written. It would be bad if we
      "flipped" the cache twice during a transaction, as we would have
      incomplete transaction data.  Note that this means that we could
      exceed the target cache size if the data for a transaction exceeded
      the target size (/2).
      
      Changed the way that the storage is closed. Our close method may be
      called from a separate thread than the async main loop. We only want
      the async main loop to close our _call (rpc) object. Instead of
      closing it directly, we call closeIntensionally(), which, in return,
      requests that the async main loop closes it, via the select trigger.
      90d90a12
    • Jim Fulton's avatar
      Added some comments. · 7a73e8ed
      Jim Fulton authored
      Added seek before write in invalidate method. Without this, strange
      things happen on NT and solaris. (I was probably breaking a rule of
      thumb that says never to do a write() right after a read() even though
      tell() would indicate I was in the right place.)
      
      Added logic to update the cache index on an invalidate.
      
      Added a separate call to check the cache size so that we only check
      when a transaction is about to be written. It would be bad if we
      "flipped" the cache twice during a transaction, as we would have
      incomplete transaction data.  Note that this means that we could
      exceed the target cache size if the data for a transaction exceeded
      the target size (/2).
      7a73e8ed