[Catalyst] Catalyst::Plugin::Session: Duplicate entry errors

Bill Moseley moseley at hank.org
Sat May 8 16:19:22 GMT 2010

On Fri, May 7, 2010 at 2:33 AM, Tobias Kremer <tobias.kremer at gmail.com>wrot=

> I'm not sure why this is happening because the _load_row() method of
> the store delegate explicitly wraps everything in a txn_do() which
> should make the find_or_create() atomic and not prone to concurrent
> select/insert/update problems.

Does it make it atomic or just fail if a second session tries to create with
the same primary key?

Looking at some old code I see that I first attempt a create, and if that
fails with a duplicate error I then do a find.  Don't need a transaction for

-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100508/3ad36=

More information about the Catalyst mailing list