On Thu, Oct 16, 2014 at 4:25 PM, Stefan Sperling <stsp_at_elego.de> wrote:
> On Tue, Sep 30, 2014 at 11:44:04AM +0200, Stefan Fuhrmann wrote:
> > On Tue, Sep 30, 2014 at 11:15 AM, Stefan Sperling <stsp_at_apache.org>
> > > How do you open a transaction and postpone the commit?
> > > Using some custom code written against the FS API?
> > >
> > It would require some custom code like "create greek tree,
> > create txn, modify a few nodes" on one side and "open the
> > only available txn, commit txn" on the other side.
> Do you have some example or starting point for that somewhere?
I attached a test that should do the right thing.
Execute the first two steps on separate architectures
and the 3rd one on an arch of your choice.
> > > Or can some tool such as svnmucc already do this?
> > >
> > svnadmin can only list and remove txns. svnmucc
> svnmucc what? :)
Hm ... don't quite remember. Probably something
along the line of "starts, builds up and commits
a txn in a single call". Basically, hard to use for
the purpose at hand.
> > > I presume you rely on apr_off_t, not off_t, right?
> > Yes, I always use apr_off_t. On my system, APR typedefs
> > it as off_t.
> off_t is always 64bit on OpenBSD, so I could only test little/big endian
> variance. Unless perhaps if I patched APR to use a 32bit type for off_t.
It would certainly be interesting to a) find systems
in the wild that still uses 32 bit off_t and b) for us to
check whether we still work on them.
> Would it be possible to test this in our regression test suite somehow?
That's probably hard unless we find a setup with
genuine 32 bit off_t because APR uses it directly
with lseek() and friends. So, we can't just redefine it.
Even the ILP32 bb-openbsd buildbot has 64 off_t.
Received on 2014-10-23 23:51:44 CEST