Jim Fulton wrote:
<snip />
I wasn't asking about implementation.

Here are some questions:

- Should this create a new FileStorage? Or should it modify the existing FileStorage in place?

Probably create a new one (analogous to a pack). Seems safer than truncating to me.


- Should this work while the FileStorage is being used?

I don't think this is important. If a new file is created it can open the existing one readonly anyhow.

- Should this behave transactional?

No need if it creates a new file

However its done it'll sure beat the iterate through transactions to find the offset for a particular time then dd to create a truncated copy method that I use ;-)

Laurence

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to