- 26 Oct, 2004 12 commits
-
-
Tim Peters authored
This triggered some code changes. When closing a connection, the meaning of "the pool is too big" is debatable: it may mean that the number of all connections the pool knows about exceeds pool_size, or it may mean that the stack of available connections (a subset of all the connections) exceeds pool_size. The code was changed to mean the latter, primarily because it's predictable. The total number of connections the pool knows about can change at any time, because it depends on which weak references DB holds that cyclic gc hasn't yet cleared. But it doesn't matter much either way, since clients are never "supposed to" exceed pool_size anyway. I think it degrades more gracefully this way.
-
Tim Peters authored
Also test that DB's internal weakrefs don't keep a Connection alive on their own.
-
Tim Peters authored
This can happen during DB construction, or after the fact.
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
zope.testing instead of rolling our own.
-
Tim Peters authored
Changed the behavior of _ConnectionPool.pop(), to return None when no connections are available.
-
Tim Peters authored
Document _p_invalidate().
-
Tim Peters authored
-
Fred Drake authored
-
Tim Peters authored
Most relevant code is much simpler now; there's no longer a hard limit on the # of connections per DB. All the tests pass, but test coverage of the sprawling DB API isn't very good.
-
- 25 Oct, 2004 4 commits
-
-
Tim Peters authored
Also gave WeakSet a suitable __contains__ implementation.
-
Tim Peters authored
If nothing else, it highlights that the transaction package got put in a wrong place (it and ZODB depend on each other).
-
Tim Peters authored
Start simplifying the code.
-
Tim Peters authored
-
- 18 Oct, 2004 2 commits
-
-
Dmitry Vasiliev authored
Code cleanups.
-
Dmitry Vasiliev authored
-
- 15 Oct, 2004 4 commits
-
-
Dmitry Vasiliev authored
Imports normalization.
-
Dmitry Vasiliev authored
-
Dmitry Vasiliev authored
Now use ZODB.utils.z64 instead of '\0\0\0\0\0\0\0\0' where appropriate.
-
Dmitry Vasiliev authored
-
- 14 Oct, 2004 4 commits
-
-
Tim Peters authored
Connection.root(): Repair error in docstring.
-
Tim Peters authored
Remove duplicate declaration and definition of py___getstate__.
-
Dmitry Vasiliev authored
-
Dmitry Vasiliev authored
-
- 12 Oct, 2004 6 commits
-
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
The tests here have to be run manually for now, so rename the directory so test.py doesn't complain about it.
-
Dmitry Vasiliev authored
-
Dmitry Vasiliev authored
-
Dmitry Vasiliev authored
-
- 08 Oct, 2004 5 commits
-
-
Tim Peters authored
Duplicate import removed.
-
Tim Peters authored
Merge revs 27788 and 27795 from Zope trunk. See Collector #1350. ghostify() and unghostify() detect one form of thread insanity now. In a debug build, they abort the process if it happens. In a release build, unghostify() raises SystemError, and ghostify() ignores it (ghostify() can't raise an exception).
-
Tim Peters authored
See Collector #1350. ghostify() and unghostify() detect one form of thread insanity now. In a debug build, they abort the process if it happens. In a release build, unghostify() raises SystemError, and ghostify() ignores it (ghostify() can't raise an exception).
-
Dmitry Vasiliev authored
-
Dmitry Vasiliev authored
-
- 05 Oct, 2004 3 commits
-
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
before I went on vacation a couple weeks ago.
-