Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Hunter committed Mar 12, 2024
1 parent 3850549 commit 7c04d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions br/pkg/lightning/backend/external/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,12 @@ func (w *Writer) createStorageWriter(ctx context.Context) (
err error,
) {
dataPath := filepath.Join(w.filenamePrefix, strconv.Itoa(w.currentSeq))
dataWriter, err := w.store.Create(ctx, dataPath, &storage.WriterOption{Concurrency: 20, PartSize: (int64)(5 * size.MB)})
dataWriter, err := w.store.Create(ctx, dataPath, &storage.WriterOption{Concurrency: 10, PartSize: (int64)(5 * size.MB)})
if err != nil {
return "", "", nil, nil, err
}
statPath := filepath.Join(w.filenamePrefix+statSuffix, strconv.Itoa(w.currentSeq))
statsWriter, err := w.store.Create(ctx, statPath, &storage.WriterOption{Concurrency: 20, PartSize: (int64)(5 * size.MB)})
statsWriter, err := w.store.Create(ctx, statPath, &storage.WriterOption{Concurrency: 10, PartSize: (int64)(5 * size.MB)})
if err != nil {
_ = dataWriter.Close(ctx)
return "", "", nil, nil, err
Expand Down

0 comments on commit 7c04d5a

Please sign in to comment.