[ZODB-Dev] deadlock prevention for ZODB3 / Zope 2.6

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 19 Nov 2002 17:52:47 +0000


On Tuesday 19 November 2002 5:24 pm, Jeremy Hylton wrote:

> It would be better if
> there was something that uniquely identified the database it was
> talking to.

Ive often thought this was an ommission from the Storage interface:

=46rom experience, it is a bad idea if there is no concept of 'identity' =
for=20
things that have distributed storage: either in an incremental backup, a=20
replication process, or change auditing. As soon as you have two such thi=
ngs,=20
you risk the confusion of restoring the wrong incremental backup, etc.

For what its worth, DirectoryStorage instances have an 'identity' attribu=
te=20
which stores a GUID generated when the storage is created.