File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ func (c *Canal) prepareSyncer() error {
462
462
Logger : c .cfg .Logger ,
463
463
Dialer : c .cfg .Dialer ,
464
464
Localhost : c .cfg .Localhost ,
465
+ EventCacheCount : c .cfg .EventCacheCount ,
465
466
RowsEventDecodeFunc : func (event * replication.RowsEvent , data []byte ) error {
466
467
pos , err := event .DecodeHeader (data )
467
468
if err != nil {
Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ type Config struct {
107
107
108
108
// Set Localhost
109
109
Localhost string
110
+
111
+ // EventCacheCount is the capacity of the BinlogStreamer internal event channel.
112
+ // the default value is 10240.
113
+ // if you table contain large columns, you can decrease this value to avoid OOM.
114
+ EventCacheCount int
110
115
}
111
116
112
117
func NewConfigWithFile (name string ) (* Config , error ) {
You can’t perform that action at this time.
0 commit comments