My code catches Wt:Dbo exceptions from the postgres backend for errors
such as duplicate key violations.  After that happens, the dbo code
does not seem to fully recover.  In some cases I get this error:
    A collection for 'test:0' is already in use. Reentrant statement
use is not yet implemented.
even though though I've created complete new dbo::ptr<> objects.  It
seems like the cached prepared statements are still marked as being
used.

I created a minimal test case, but rather than getting the above
error, it just seg faults.  Attached is the test file.  I could not
figure out how to create an index from the code, so I created the
table external to the test program.
environment: linux (Debian Lenny), postgresql 8.3, boost 1.40, wt
3.1.3 and 3.1.5

gdb: backtrace:
#0  Wt::Dbo::Session::flush (this=0x0) at
/home/build/wt-3.1.5/src/Wt/Dbo/Session.C:828
#1  0xb77a3451 in Wt::Dbo::Transaction::Impl::commit (this=0x9fe63f8)
    at /home/build/wt-3.1.5/src/Wt/Dbo/Transaction.C:85
#2  0xb77a3528 in Wt::Dbo::Transaction::commit (this=0xbfd0a2e4)
    at /home/build/wt-3.1.5/src/Wt/Dbo/Transaction.C:51
#3  0x0804d4e9 in main ()

Eric

Attachment: test.cpp
Description: Binary data

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to