Re: [Zope3-dev] Phantom of GadflyAdapter

2006-01-03 Thread Stephan Richter
On Wednesday 14 December 2005 04:06, Tadashi Matsumoto wrote: I have made a test. It works well (perhaps). This test program is small, so I have attached in this mail. Thank you very much. See revision 41109. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics

Re: [Zope3-dev] Phantom of GadflyAdapter

2005-12-14 Thread Tadashi Matsumoto
On Tue, 13 Dec 2005 10:08:17 -0500 [EMAIL PROTECTED] wrote. On Tuesday 13 December 2005 09:54, Tadashi Matsumoto wrote: If you write a test for this, I'll check it in. I have made a test. It works well (perhaps). This test program is small, so I have attached in this mail. Tadashi

[Zope3-dev] Phantom of GadflyAdapter

2005-12-13 Thread Tadashi Matsumoto
Phantom of GadflyAdapter GadflyAdapter sometimes causes phantom read. The reason is that many connections are made simultaneously on a gadfly database through the thead local variable _v_connection. Threadsafety level 2 or higher is required to use the thread local variable. To remedy this

Re: [Zope3-dev] Phantom of GadflyAdapter

2005-12-13 Thread Stephan Richter
On Tuesday 13 December 2005 09:54, Tadashi Matsumoto wrote: Simple patch: --- gadflyda.py.org     2005-12-06 22:19:47.0 +0900 +++ gadflyda.py 2005-12-12 22:41:07.0 +0900 @@ -51,6 +51,8 @@        # The registerable object needs to have a container      __name__ = __parent__

Re: [Zope3-dev] Phantom of GadflyAdapter

2005-12-13 Thread Tadashi Matsumoto
On Tue, 13 Dec 2005 10:08:17 -0500 [EMAIL PROTECTED] wrote. On Tuesday 13 December 2005 09:54, Tadashi Matsumoto wrote: Simple patch: If you write a test for this, I'll check it in. Ok, I will try. But I'm not sure I can make a test that always fails for the origial code and succeeds for