Menu

#54 Chance of duplicate allocation when insert followed by delet

open-later
lock (4)
7
2011-04-16
2007-11-15
No

deleteTuple() currently marks the rows deleted.
It will set the usedflag to false, but locks will be held till commit and it shall be rolled back later. So we need to make sure that it does not allocate a deleted tuple which is yet to be commited by another transaction.

Fix:
check whether the data item is locked before allocating.

Discussion

  • Prabakaran Thirumalai

    • priority: 5 --> 7
     
  • Prabakaran Thirumalai

    Logged In: YES
    user_id=1500244
    Originator: YES

    It is better to take the lock during allocation itself after checking whether it is locked. this will save us lot of cpu cycles. but it will make the allocation module dependent on the locking module..guess it is ok as it will not add any overhead during the insertTuple() method.

     
  • Kishor Amballi

    Kishor Amballi - 2009-02-06
    • priority: 7 --> 9
    • assigned_to: nobody --> bijaya
     
  • Bijaya kumar Sahu

    • status: open --> open-later
     
  • Prabakaran Thirumalai

    • labels: --> lock
    • priority: 9 --> 7
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.