xbmc/xbmc — pull request #953 by jmarshallnz (2012-05-10 09:06:49+00:00)
Title: Update version transaction

This ensures we remain inside a transaction for the complete run of UpdateVersion. Before there was a (very slim) chance that UpdateOldVersion could be called from thread A while thread B was in between UpdateOldVersion/UpdateVersionNumber.

I doubt this is an actual issue, but it makes sense to complete it all under a transaction so that the rollback occurs as one would expect for the cases where we screw up the UpdateOldVersion for mysql :p