修改
This commit is contained in:
parent
1de3603afe
commit
e0df7ff4e9
@ -63,7 +63,7 @@ public class TransformService : ITransformService
|
||||
record = replaceRecord;
|
||||
}
|
||||
_consumerQueue.Enqueue(record);
|
||||
_context.AddTransform();
|
||||
_context.AddTransform();
|
||||
//数据增加
|
||||
var addRecords=_options.Value.RecordAdd?.Invoke(record);
|
||||
if(addRecords != null&& addRecords.Count>0)
|
||||
@ -74,6 +74,7 @@ public class TransformService : ITransformService
|
||||
_context.AddTransform();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_context.CompleteTransform();
|
||||
|
@ -61,7 +61,7 @@ public class MySqlDestination : IDisposable, IAsyncDisposable
|
||||
{
|
||||
cmd.CommandText = insertSql;
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
_logger.LogInformation(@"do insert completed!size:{Length}", cmd.CommandText.Length);
|
||||
|
||||
}
|
||||
_recordCache.Clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user