[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Cancellation and wc-ng txns

From: Hyrum K Wright <hyrum_at_hyrumwright.org>
Date: Fri, 22 Apr 2011 16:11:27 -0500

What's the relationship between cancellation functions and
transactions in wc-ng?

In the interests of performance and correctness, we've been moving
toward a model where more and more gets done in a single wc-ng
transaction. I've no problem with that, and like the atomicity and
speed it gives us, but how does that interact with our cancellation
functions? Do we still check for cancellation from within the
transaction? If the user cancels, do we rollback the transaction, or
commit it?

My question then is two-fold:
 * what actually happens today?
 * and what is the Right Thing to happen?

My own thoughts: we should check for cancellation, and if it occurs,
we should rollback the txn.

-Hyrum
Received on 2011-04-22 23:11:56 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.