[ZODB-Dev] Packing Mounted Storages...

Chris McDonough chrism@zope.com
Thu, 25 Apr 2002 11:44:31 -0400


Call the mounted storage's pack() method.  You can do this like so, where
"obj" is any object contained in the database backed by the storage you want
to pack:

storage = obj._p_jar._db._storage
storage.pack()

This will have no effect on the other storage.

----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "Chris McDonough" <chrism@zope.com>
Cc: "ZODB Dev List" <zodb-dev@zope.org>
Sent: Thursday, April 25, 2002 11:30 AM
Subject: Re: [ZODB-Dev] Packing Mounted Storages...


> Hmmm... here's another take on the same problem...
>
> How can I pack a normal FileStorage that's mounted in another FileStorage
with out packing
> hte storage it's mounted in?
>
> cheers,
>
> Chris
>