Skip to content

Commit

Permalink
Increase the windows bookmark buffer. (#3303)
Browse files Browse the repository at this point in the history
See this discussion #3246 (comment)

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena authored Feb 9, 2021
1 parent 5f0c06a commit 82cead2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/promtail/targets/windows/bookmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type bookMark struct {
// newBookMark creates a new windows event bookmark.
// The bookmark will be saved at the given path. Use save to save the current position for a given event.
func newBookMark(path string) (*bookMark, error) {
// 4kb buffer for rendering bookmark
buf := make([]byte, 4<<10)
// 16kb buffer for rendering bookmark
buf := make([]byte, 16<<10)

_, err := fs.Stat(path)
// creates a new bookmark file if none exists.
Expand Down

0 comments on commit 82cead2

Please sign in to comment.