Front page | perl.perl5.porters |
Postings from April 2008
Stupid Transaction Idea?
Thread Next
From:
Ovid
Date:
April 2, 2008 02:03
Subject:
Stupid Transaction Idea?
Message ID:
137663.96387.qm@web65707.mail.ac4.yahoo.com
I would swear someone else has asked this, but just in case ...
Using forks or threads, what would it take to convince perl that
another process was the *real* process? That could let us do this:
start_transaction(); # fork
if ( we_be_happy() ) {
commit(); # discard fork
}
else {
rollback(); # switched to forked copy
}
While there would be all sorts of caveats involved (can't backtrack
over deleted files very easily, for example), how hard would something
like this be to implement? The idea sounds so obvious that I can only
assume there are serious reasons why it has not been tried.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
Thread Next
-
Stupid Transaction Idea?
by Ovid