[ZODB-Dev] oids affected by a transaction
Pascal Peregrina
Pperegrina at Lastminute.com
Mon May 22 03:11:33 EDT 2006
Ok, thanks a lot.
Pascal
-----Message d'origine-----
De : Tim Peters [mailto:tim.peters at gmail.com]
Envoyé : vendredi 19 mai 2006 22:32
À : Pascal Peregrina
Cc : zodb-dev at zope.org
Objet : Re: [ZODB-Dev] oids affected by a transaction
[Pascal Peregrina]
> I would like to know if there is a way to get the list of affected oids
> knowing a transcaction id.
Nothing in the storage API reveals this.
> If not, any idea about what would be the simplest way to do that for a
> FileStorage ZODB?
Search the output of fsdump.py:
http://zope.org/Wikis/ZODB/FileStorageBackup
for tid, and suck out the "oid=<number>" fields from following lines.
You could also look at the internal code executed by FileStorage.undo().
One way or another, you have to search the .fs file for the
transaction's record, then pick apart the data records the transaction
record contains.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
More information about the ZODB-Dev
mailing list