Download NESTED TRANSACTIONS FOR CONCURRENT EXECUTION OF

Transcript
57
{
}
}
if (hs + rs == 0)
change grantmode from X to -- else
if (aborting transaction was retaining in S mode)
do nothing ! else
if (aborting transaction was retaining in X mode)
change grantmode to S else
do nothing ! ROretain()
{
decrement hs field of all superiors of aborting transaction at each superior until the inner most sphere
{
if (hs + rs == 0)
change grantmode from X to -- else
if (aborting transaction retained in S-mode and rs > 0)
do nothing ! else
if (aborting transaction had retained in X-mode
and rs > 0)
change the grantmode to S else
do nothing ! }
}
RSupdate()
{
if (aborting transaction was retaining)
then
decrement rs field of all superiors of aborting transaction }
Else() /* aborting transaction was not holding but retaining
{
if (aborting transaction was retaining a lock)
switch(retain mode) /* aborting transaction */
case(X) :
decrement rs field of all superiors of aborting
transaction at each superior
{
*/