Wrapped troublesome updates at StoreInfoDirect in a transaction
authorpkanavos <pkanavos@gmail.com>
Mon, 2 Jul 2012 07:36:44 +0000 (10:36 +0300)
committerpkanavos <pkanavos@gmail.com>
Mon, 2 Jul 2012 07:36:44 +0000 (10:36 +0300)
trunk/Pithos.Core/Agents/StatusAgent.cs

index 4daaadc..89d7e13 100644 (file)
@@ -674,6 +674,7 @@ namespace Pithos.Core.Agents
             {
                 
                 using (var connection = GetConnection())
+                using(var tx=connection.BeginTransaction())
                 using (var command = new SQLiteCommand(connection))
                 {
                     //If the ID exists, update the status