[PATCH 3 of 4] shelve: use rollback instead of aborting a current transaction for shelve

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Wed Oct 7 11:59:30 CDT 2015


At Mon, 05 Oct 2015 11:24:51 -0700,
Pierre-Yves David wrote:
> 
> 
> 
> On 10/05/2015 07:42 AM, FUJIWARA Katsunori wrote:
> > At Sun, 04 Oct 2015 14:47:18 -0700,
> > Pierre-Yves David wrote:
> >>
> >> On 10/04/2015 05:44 AM, FUJIWARA Katsunori wrote:
> >>> # HG changeset patch
> >>> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> >>> # Date 1443962009 -32400
> >>> #      Sun Oct 04 21:33:29 2015 +0900
> >>> # Node ID e265a8c85c3873815730921ae2d8ca3c6df3b48a
> >>> # Parent  ce4ea67c82972f2988e42372cd6443b6c288e1c8
> >>> shelve: use rollback instead of aborting a current transaction for shelve
> >>
> >> I'm not sure that I like these one (and the next).
> >>
> >> Using rollback means that the transaction is actually commited at some
> >> point. Rolling it back will likely cause cache invalidation issue and
> >> race condition with other reader.
> >
> > Oops, I forgot that incorrect visibility for a moment at closing
> > transaction :-<
> >
> > I'll post revised ones using another way (maybe enclosing such scope
> > by dirstateguard).
> 
> I'm open to any kind of awful hack on the shelve side if it helps us to 
> move forward on the big picture.

I just posted V2 series, but sorry, I forgot adding V2 flag :-<

V2 series does:

  - add mention about removing 'bmstore.write()' to description
    (changes in the patch are equal to one in V1)

  - fully re-work about shelve/unshelve


> 
> -- 
> Pierre-Yves David
> 

----------------------------------------------------------------------
[FUJIWARA Katsunori]                             foozy at lares.dti.ne.jp


More information about the Mercurial-devel mailing list