Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLybird locking

 
donal horgan
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quick question -- did people find themselves using one lock flag per record or simply one lock flag in total denoting as to whether a record is locked at a particluar time.i.e. where only 1 record can be locked at any omoent in time
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it would satisfy the requirements if you lock the entire database just to modify a particular record. I mean, in that case, you would not even need to pass a record number to your lock/unlock methods -- just lock the entire database, modify the record, and unlock the entire database. Would not be much of a challenge.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic