Re: Some questions about GNOME:Storage



"Dirk-Jan C. Binnema" wrote:

> Hi there,
>
> > > * commit exists, but where is revert?
> >
> > I think commit is all we need (although itīs possible to implement a revert
> > with libefs). But the semantic of commit is not clear at the moment - what is
> > if commit fails?
>
> I'd say you have a problem then ;-)
>
> Seriously, commit ensures that changes are reflected to the parent
> storage. (at least, that's what "Inside OLE" says). Revert returns us to
> the the state of the last Commit.
>
> Indeed,  'undo' doesn't have to be implemented at the Storage
> level.
>

Ok, maybe revert is a good thing since it ensures to get a defined
state after a failure.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]