Default transaction isolation level changed to 'ReadCommited'

main
Inga 🏳‍🌈 14 years ago
parent 6ac4ca353c
commit 4a58e53acd
  1. 2
      Core/DB/IDBConnection.cs
  2. 3
      IISMainHandler/handlers/DebugHandler.cs

@ -41,7 +41,7 @@ namespace FLocal.Core.DB {
}
public static Transaction beginTransaction(this IDBConnection connection) {
return connection.beginTransaction(System.Data.IsolationLevel.Snapshot);
return connection.beginTransaction(System.Data.IsolationLevel.ReadCommitted);
}
public static Dictionary<string, string> LoadById(this IDBConnection connection, ITableSpec table, string id) {

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FLocal.Core.DB;
using FLocal.Common.dataobjects;
namespace FLocal.IISHandler.handlers {
@ -22,7 +23,7 @@ namespace FLocal.IISHandler.handlers {
context.httpresponse.WriteLine("AppInfo: " + context.config.AppInfo);
context.httpresponse.WriteLine("InitTime: " + context.config.InitTime);
if(context.httprequest.Path == "/test/") {
using(Core.DB.Transaction transaction = context.config.mainConnection.beginTransaction(System.Data.IsolationLevel.Snapshot)) {
using(Transaction transaction = context.config.mainConnection.beginTransaction()) {
context.httpresponse.WriteLine(transaction.GetHashCode().ToString());
}
}

Loading…
Cancel
Save