1. 09 Dec, 1999 1 commit
    • Jim Fulton's avatar
      Added flush call in undo. · 039bcfc0
      Jim Fulton authored
      Added utility code to recover corrupted databases. Note that
      the recover method is imperfect. It doesn't recover lost data. It
      just repairs the file so the lost data doesn't prevent startup.
      
      To run the recovery code:
      
        - cd lib/python
        - python ZODB/fsrecover.py ../../var/Data.fs
      039bcfc0
  2. 07 Dec, 1999 1 commit
    • Jim Fulton's avatar
      The following scenario could lead to strange and serious errors: · 58d0299a
      Jim Fulton authored
        - Restart or pack Zope, causing an index to get written
      
        - Undo some transactions
      
        - Shutdown Zope ungracefully (e.g. kill)
      
      When Zope comes up, the index points to undone records for some
      objects. This can lead to all sorts of problems. :(
      
      To overcome this problem, we now remove the index after an
      undo.
      
      This increases the likelyhood that it will take longer to restart
      next time, but reduces the chance of a bad index.
      58d0299a
  3. 23 Nov, 1999 3 commits
  4. 16 Nov, 1999 13 commits
  5. 12 Nov, 1999 1 commit
  6. 10 Nov, 1999 1 commit
  7. 28 Oct, 1999 1 commit
    • Jim Fulton's avatar
      Somehow, someone got a zero previous record pointer on a record for an · 11858d5b
      Jim Fulton authored
      object that has previous records.  This caused a panic on startup
      because the previous record pointer did not agree with the system's
      knowledge that there was, indeed, a previous record. This is a
      pretty benign situation, so, I've changed the check to log a warning
      of the previous record pointer is zero and there is a previous record.
      11858d5b
  8. 22 Oct, 1999 1 commit
  9. 18 Oct, 1999 3 commits
  10. 13 Oct, 1999 1 commit
  11. 07 Oct, 1999 5 commits
  12. 24 Sep, 1999 1 commit
  13. 23 Sep, 1999 4 commits
  14. 16 Sep, 1999 1 commit
  15. 15 Sep, 1999 2 commits
    • Jim Fulton's avatar
      Added cache management methods so that apps that want to move objects · e3c65066
      Jim Fulton authored
      out of memory can force aggressive cache behavior:
      
        cacheGC() -- do an incremental GC
      
        cacheFullSweep([dt]) -- Make a pass through objects in the cache
           removing unreferenced objects and, if dt > 0, deactivating
           objects accessed more than dt seconds ago.
      
        cacheMinimize([dt]) -- Make multiple passes through objects in the cache
           removing unreferenced objects and, if dt > 0, deactivating
           objects accessed more than dt seconds ago. Keep making passes
           until the cache size doesn;t change.
      e3c65066
    • Jim Fulton's avatar
      · 59243da3
      Jim Fulton authored
      Added a coptimizations module.  The first optimization is
      to provide an implementation of persistent_id in C.  This
      routine, which is called extremely often while pickling was
      found to be a significant bottleneck.
      59243da3
  16. 14 Sep, 1999 1 commit
    • Jim Fulton's avatar
      · 2c4caae1
      Jim Fulton authored
      Fix a bug in object deactivation.
      Overridden versions of _p_deactivate were not called.
      This meant that BTrees were never deactivated.
      2c4caae1