Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/28/09 16:15:10 (15 years ago)
Author:
svonolfe
Message:

Avoided possible race conditions when streaming data from/into the DB (#680)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs

    r2122 r2123  
    480480          (JobResult)formatter.Deserialize(stream);
    481481
    482         tx = session.BeginTransaction();
     482        //important - repeatable read isolation level is required here,
     483        //otherwise race conditions could occur when writing the stream into the DB
     484        tx = session.BeginTransaction(
     485          TransactionIsolationLevel.RepeatableRead);
    483486
    484487        ResponseResultReceived response =
Note: See TracChangeset for help on using the changeset viewer.