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(); }
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); }
private void Read(InnerData data, TransactionExecutor executor) { if (data.Transaction.IsNeedAllServes) { ReadLong(data); } else { ReadSimple(data, executor); } }
public void ProcessSyncWithExecutor(InnerData data, TransactionExecutor executor) { if (data.Transaction.OperationName == OperationName.Read) { Read(data, executor); } else { ExecuteTransaction(data, executor); } }