2.0 upgrade experiences

Robert Collins robertc at robertcollins.net
Thu Aug 13 08:58:18 BST 2009


On Thu, 2009-08-13 at 15:51 +0800, Martin Pool wrote:

> On upgrade we've normally already made a backup of the whole
> repository so I think having it pass down a flag saying pack should
> immediately remove obsolete data would be very safe.

In terms of recovery yes, unless the user uses the 'delete my backup
afterwards' option. I think that when we deliberately allow a race
condition, particularly one that is hard to explain for all our users to
follow, we should seek a very strong cause for opening it.

An fsync in this situation would be simple - and in code terms fit your
description - 'dont_keep_obsolete=True' -> does an fsync(), then deletes
obsoleted packs.

-Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090813/3dd025f2/attachment-0001.pgp 


More information about the bazaar mailing list