- 29 Mar, 2002 3 commits
-
-
Barry Warsaw authored
really testing what we're interested in (they were testing the equality of the exact layout of the undoInfo() -- not interesting).
-
Barry Warsaw authored
suspicion that FileStorage (and an FS-backed ZEO) fails a transactional undo after a pack, but Berkeley storage passes.
-
Jeremy Hylton authored
Two problems: A revid doesn't have the right type. But even if we decoded the revid using TimeStamp(revid).timeTime(), it would be the wrong time. We want to pack to the current time to delete older revisions. I believe the test case tried to keep one revision available so that it could be packed. The new test doesn't do that, so it will fail even after we fix FileStorage. I think the right answer is to call time.time() after the second commit *and* make sure that there is at least a one second delay between the two stores.
-
- 28 Mar, 2002 4 commits
-
-
Barry Warsaw authored
the underlying bug in transactionalUndo() on a standby storage. If our hypothesis is correct, the bug is in FileStorage, and is caused by encoding the file position in the `id' field of the undoLog information. Note that Full just encodes the tid, but this is a problem for FileStorage (we have a strategy for fixing this). NOTE: checking this in on the trunk is mildly antisocial because it introduces failures in the test suite. I'm doing it this way because 1) it really isn't worth a branch, even a short lived one; 2) Jeremy may have time to look at it before tomorrow; 3) I don't trust my machine not to lock up and make this mod unavailable. :( Either way, this /will/ get fixed by tomorrow.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
The --nowrite option will disable writing. (It's not possible to enable writing and disable reading, so that's the only option.)
-
Jeremy Hylton authored
The problem was that the randomly generated test data was occasionally invalid. Fix is to hardcode a specific set of test data instead of using random.
-
- 27 Mar, 2002 1 commit
-
-
Toby Dickenson authored
-
- 15 Mar, 2002 4 commits
-
-
Andreas Jung authored
-
Andreas Jung authored
weightedIntersection|Union(). That's a contradiction to the documentation and the implementation.
-
Jeremy Hylton authored
Also change to use time.localtime() instead of calling time.time() first. This is a Python 2.1-ism. Per request by Andreas Jung.
-
Jeremy Hylton authored
-
- 12 Mar, 2002 2 commits
-
-
Kapil Thangavelu authored
don't pass, and have been prefixed by 'BUG'
-
Kapil Thangavelu authored
-
- 11 Mar, 2002 1 commit
-
-
Andreas Jung authored
-
- 08 Mar, 2002 3 commits
-
-
Jeremy Hylton authored
Fix SF bug #516768 reported by Dave Wallace. Replace use of PyMem_DEL() with PyObject_Del() on object dealloc functions. The use of PyMem_DEL() is incorrect for object deallocation, because it only ever calls the low-level free(). If a custom allocator like pymalloc is used, it needs to be called to free the memory.
-
Jeremy Hylton authored
Fix SF bug #516768 reported by Dave Wallace. Replace use of PyMem_DEL() with PyObject_Del() on object dealloc functions. The use of PyMem_DEL() is incorrect for object deallocation, because it only ever calls the low-level free(). If a custom allocator like pymalloc is used, it needs to be called to free the memory. Also replace bare malloc() and realloc() with PyMem_Malloc() and PyMem_Realloc(). I think this isn't a strict bug fix, but a would be nice. It guarantees that BTrees objects get their memory from the same allocator as the Python core.
-
Jeremy Hylton authored
The previous, insane version was passing None or a thread id to "%.03f". Add some whitespace around get_transaction() implementations.
-
- 28 Feb, 2002 2 commits
-
-
Andreas Jung authored
-
Jeremy Hylton authored
-
- 21 Feb, 2002 1 commit
-
-
Jeremy Hylton authored
The code was intended to be added to the Zope3 branch, not modified on the trunk.
-
- 20 Feb, 2002 1 commit
-
-
Jeremy Hylton authored
-
- 13 Feb, 2002 1 commit
-
-
Guido van Rossum authored
of the StandaloneZODB-1_0-branch into the trunk. The StandaloneZODB-1_0-branch is now dead!
-
- 12 Feb, 2002 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
trunk. I'm *almost* done with the merge; the only file not yet merged is FileStorage.py.
-
Guido van Rossum authored
code that is needed for it yet.
-
- 11 Feb, 2002 6 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Jeremy Hylton authored
Summary of changes: - Add function gc_all_items() to call gc_item() on everything in dict. This factors out common code in all the gc methods. - Add check_size() function that factors out code to check cache size before starting a gc. - Simplify argument processing in cc_invalidate(), avoiding a second call to PyArg_ParseTuple() when argument is a sequence instead of a dictionary. - Chance code to reflect belief that NULL return from PyDict_GetItem() does not set exception, except in cases that don't apply for the pickle cache like comparing a string with high-order bit set to a Unicode object. - Use if (!expr) instead of UNLESS(). - Remove all statements from conditionals. - Reformat to 4 spaces and Python-style brace placement. - Put whitespace around operators and after commas.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
- 07 Feb, 2002 1 commit
-
-
Andreas Jung authored
-
- 30 Jan, 2002 7 commits
-
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Refactor main() to report all errors and exit with non-zero status.
-
Jeremy Hylton authored
-