Subject | Re: What happens if the power fails |
---|---|
Author | spif1973 |
Post date | 2003-11-07T08:20:41Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
happens, that the power fails during the commitments.
Ex. 5 tuples to be updated, the first 2 gets updated, then the power
fails and the rest never gets updated.
Will the first 2 then be rolled-back on start-up, or will they have
the updated data?
Martin
wrote:
> > Hi - I´m new to Firebird and I was wondering what happens, if I amtransaction,
> > trying to update/add/delete multiple tuples in a single
> > and the power fails during the process. Will it rollback when thetuples in
> > power comes back on? Or will it leave the update/add/delete
> > the database?my
> > Im hoping for a rollback :), since I otherwise will have to code
> > way out of the problem (i´m using .NET, C# and Firebirdv.1.5.0.3744
> > RC4).record
> >
> >
>
> If it never reaches the commit stage, then it will be left as a
> version which will be cleaned up next time you garbage collect orthrown
> backup/restore. It won't be rolled back just never committed and
> away. At least that's what I think. The changes you speak of arenever seen
> again.ok - but if it reaches the commit stage, and the unlikely scenario
>
> Alan
happens, that the power fails during the commitments.
Ex. 5 tuples to be updated, the first 2 gets updated, then the power
fails and the rest never gets updated.
Will the first 2 then be rolled-back on start-up, or will they have
the updated data?
Martin