Skip to Main Content
Distributed Database Systems, 1st Edition by Chhanda Ray
book

Distributed Database Systems, 1st Edition by Chhanda Ray

by Chhanda Ray
May 2024
Intermediate to advanced content levelIntermediate to advanced
325 pages
12h 2m
English
Pearson India
Content preview from Distributed Database Systems, 1st Edition by Chhanda Ray
Distributed Recovery Management
159
Example 10.1
Let us consider a banking transaction T1 that transfers $1,000 from account A to account B, where
the balance of account A is $5,000 and the balance of account B is $2,500 before the transaction
starts. Using immediate modifi cation recovery technique, the following information will be written
into the database log and into the permanent database to recover from a failure.
Main Memory Database Log Permanent Database
read(A, ai) <T1, start> A = 5000, B = 2500
ai = ai − 1000
write(A, ai) <T1, update, A, 5000, 4000> A = 4000, B = 2500
read(B, bi)
bi = bi + 1000
write(B, bi) <T1, update, B, 2500, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Distributed Systems, 2nd Edition

Distributed Systems, 2nd Edition

Sukumar Ghosh
Algorithms and Data Structures for Massive Datasets

Algorithms and Data Structures for Massive Datasets

Dzejla Medjedovic, Emin Tahirovic, Ines Schweigert
Architecting Distributed Transactional Applications

Architecting Distributed Transactional Applications

Guy Harrison, Andrew Marshall, Charles Custer

Publisher Resources

ISBN: 9781282652521Publisher WebsitePurchase Link