Skip to content

Commit

Permalink
adjust memory release parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Mar 3, 2024
1 parent a6f8b1d commit d0c9e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/cdc/sink/codec/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ type MQMessage struct {
}

const (
MemoryReleaseThreshold = 1024
MemoryReleaseFactor = 10
MemoryReleaseThreshold = 100 * 1024 // 100KiB
MemoryReleaseFactor = 100
)

func resetBuffer(buf []byte) []byte {
Expand Down

0 comments on commit d0c9e75

Please sign in to comment.