Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Optimistic Locking  RSS feed

 
Tony romer
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a transaction rollbacks, does still version number changes?

I missed a question in UCertify, it was stating, version number changes if a transaction commits or rollbacks.
I was thinking it changes just only when transaction commits.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was thinking it changes just only when transaction commits.

You're right. It makes no sense to update the version number if the transaction rolls back. That would prevent other pending transactions to commit, although no changes have been made.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!