This commit is contained in:
lindj 2024-01-17 11:53:44 +08:00
parent 1de3603afe
commit e0df7ff4e9
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class TransformService : ITransformService
record = replaceRecord; record = replaceRecord;
} }
_consumerQueue.Enqueue(record); _consumerQueue.Enqueue(record);
_context.AddTransform(); _context.AddTransform();
//数据增加 //数据增加
var addRecords=_options.Value.RecordAdd?.Invoke(record); var addRecords=_options.Value.RecordAdd?.Invoke(record);
if(addRecords != null&& addRecords.Count>0) if(addRecords != null&& addRecords.Count>0)
@ -74,6 +74,7 @@ public class TransformService : ITransformService
_context.AddTransform(); _context.AddTransform();
} }
} }
} }
_context.CompleteTransform(); _context.CompleteTransform();

View File

@ -61,7 +61,7 @@ public class MySqlDestination : IDisposable, IAsyncDisposable
{ {
cmd.CommandText = insertSql; cmd.CommandText = insertSql;
await cmd.ExecuteNonQueryAsync(); await cmd.ExecuteNonQueryAsync();
_logger.LogInformation(@"do insert completed!size:{Length}", cmd.CommandText.Length);
} }
_recordCache.Clear(); _recordCache.Clear();
} }