We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00024f commit b94cdc4Copy full SHA for b94cdc4
internal/cnpgi/common/wal.go
@@ -107,7 +107,12 @@ func (w WALServiceImplementation) Archive(
107
if err != nil {
108
return nil, err
109
}
110
- walList := arch.GatherWALFilesToArchive(ctx, request.GetSourceFileName(), 1)
+ barmanConfiguration := &objectStore.Spec.Configuration
111
+ maxParallel := 1
112
+ if barmanConfiguration.Wal != nil && barmanConfiguration.Wal.MaxParallel > 1 {
113
+ maxParallel = barmanConfiguration.Wal.MaxParallel
114
+ }
115
+ walList := arch.GatherWALFilesToArchive(ctx, request.GetSourceFileName(), maxParallel)
116
result := arch.ArchiveList(ctx, walList, options)
117
for _, archiverResult := range result {
118
if archiverResult.Err != nil {
0 commit comments