コード例 #1
0
        private void ReadSimple(InnerData data, TransactionExecutor executor)
        {
            var result = executor.ReadSimple(data);

            ProcessReadResult(data, result, data.Transaction.ProxyServerId);
            data.Transaction.PerfTimer.Complete();
            PerfCounters.DistributorCounters.Instance.ProcessPerSec.OperationFinished();
        }
コード例 #2
0
        private void ExecuteTransaction(InnerData data, TransactionExecutor executor)
        {
            Logger.Logger.Instance.Debug(string.Format("Transaction process data = {0}", data.Transaction.EventHash));

            data.Transaction.StartTransaction();

            executor.Commit(data);
        }
コード例 #3
0
 private void Read(InnerData data, TransactionExecutor executor)
 {
     if (data.Transaction.IsNeedAllServes)
     {
         ReadLong(data);
     }
     else
     {
         ReadSimple(data, executor);
     }
 }
コード例 #4
0
 public void ProcessSyncWithExecutor(InnerData data, TransactionExecutor executor)
 {
     if (data.Transaction.OperationName == OperationName.Read)
     {
         Read(data, executor);
     }
     else
     {
         ExecuteTransaction(data, executor);
     }
 }