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

Re: svn commit: r26132 - trunk/tools/server-side

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2007-08-18 05:52:50 CEST

"David Glasser" <glasser@davidglasser.net> writes:

> Hmm, are you sure? Here's how I read it. Assume we're moving from
> linear to sharded size 1000; we run one copy on 0-1999 and one on
> 2000-4999, so that the first one is making shards 0 and 1, and the
> second is making shards 2 3 and 4. Let's say the first one completes
> while the second is still filling up db/revs.reshard/4.shard. The
> first process will happily move all five *.shard directories into
> db/revs and delete db/revs.reshard even while the second process is
> still filling 4.shard.
> I haven't tested this, but that's what the code looks like to me... if
> you don't see it, I'll try to reproduce it.

No, you're right. I found my copy of fsfs-reshard that I had
actually used just left those .shard directories alone, and I
moved them all into place at the end. The one in my working
copy, with the shard renaming, I apparently never actually ran.
Oops! Maybe we just don't bother with the renaming if a range is
specified, and add a --finalize mode?

Bleh, making tools for yourself is ever so much easier than
trying to generalize...

Eric Gillespie <*> epg@pretzelnet.org
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 18 05:50:31 2007

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