Skip to content

Commit

Permalink
Merge branch 'master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 3, 2021
2 parents cdb7e3d + e60f822 commit 9a1b166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/checkpoint/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const (
goroutineKey = contextKey("CHECKPOINT_GOROUTINE")
funcKey = "__func__"
hashKey = "__hash__"

// At most 10M for each line in audit log
maxTokenSize = 10 * 1024 * 1024
)

var (
Expand Down Expand Up @@ -125,6 +128,7 @@ func NewCheckPoint(r io.Reader) (*CheckPoint, error) {
cp := CheckPoint{points: make([]map[string]interface{}, 0)}

scanner := bufio.NewScanner(r)
scanner.Buffer(nil, maxTokenSize)
for scanner.Scan() {
line := scanner.Text()
m, err := checkLine(line)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cluster/manager/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (m *Manager) Reload(name string, opt operator.Options, skipRestart, skipCon
}
})

refreshConfigTasks, hasImported := buildRegenConfigTasks(m, name, topo, base, nil, false)
refreshConfigTasks, hasImported := buildRegenConfigTasks(m, name, topo, base, nil, opt.IgnoreConfigCheck)
monitorConfigTasks := buildRefreshMonitoredConfigTasks(
m.specManager,
name,
Expand Down

0 comments on commit 9a1b166

Please sign in to comment.