[Prevayler-discussion] Revert to old snapshot
Brought to you by:
jsampson,
klauswuestefeld
From: Walter v. I. <wal...@im...> - 2006-05-23 14:00:43
|
Hi all, Does anybody have experience with reverting the prevalentSystem to a certain snapshot? I'm thinking about reading the snapshot file (similar to SnapshotManager.readSnapshot()), and creating a new transaction that copies the prevalentSystem back to the read system. I'm too lazy to add undo-functionality to every transaction, only because the administrator _might_ someday import the wrong file, currupt the data, and doesn't know how to get the system up and running again. Any thoughts if this reading would lead to problems? (running the replicated configuration). I don't expect any, but I'm just a bit more careful, as I work both above (transactions) and below (file system) the library at the same time. BTW, and when it works, I also have a nice starting point for my unit tests. ;-) Regards, Walter van Iterson |