Subject: Re: [boost] [transact] code in sandbox
Date: 2010-02-17 13:13:20
Zitat von Vicente Botet Escriba <vicente.botet_at_[hidden]>:
> abort/rollback will abort the current transaction on the point of call,
> force_to_abort/set_rollback_only don' make the transaction to abort/rollback
> immediately, but tell to the the transaction that it must be
> aborted/rolledback next time we try to commit it.
some more details:
tx.commit(); //does what? throw? which exception?
pers_obj->value=1; //does what?
//a) throw? which exception?
//b) go ahead, only throw on commit.
tx.commit(); //throw? which exception?
pers_obj->value=1; //throw? which exception?
please explain why for each case.
current behaviour is the following, but subject to change:
3: undefined behaviour(my RM throws no_active_transaction)
4: throw no_active_transaction()
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk