|
|
|
|
@ -67,7 +67,7 @@ func OpenRepository(ctx context.Context, repoPath string) (*Repository, error) {
@@ -67,7 +67,7 @@ func OpenRepository(ctx context.Context, repoPath string) (*Repository, error) {
|
|
|
|
|
func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bufio.Reader, func(), error) { |
|
|
|
|
if repo.batch == nil { |
|
|
|
|
var err error |
|
|
|
|
repo.batch, err = repo.NewBatch(ctx) |
|
|
|
|
repo.batch, err = NewBatch(ctx, repo.Path) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, nil, nil, err |
|
|
|
|
} |
|
|
|
|
@ -81,7 +81,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
@@ -81,7 +81,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.Debug("Opening temporary cat file batch for: %s", repo.Path) |
|
|
|
|
tempBatch, err := repo.NewBatch(ctx) |
|
|
|
|
tempBatch, err := NewBatch(ctx, repo.Path) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, nil, nil, err |
|
|
|
|
} |
|
|
|
|
@ -92,7 +92,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
@@ -92,7 +92,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
|
|
|
|
|
func (repo *Repository) CatFileBatchCheck(ctx context.Context) (WriteCloserError, *bufio.Reader, func(), error) { |
|
|
|
|
if repo.check == nil { |
|
|
|
|
var err error |
|
|
|
|
repo.check, err = repo.NewBatchCheck(ctx) |
|
|
|
|
repo.check, err = NewBatchCheck(ctx, repo.Path) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, nil, nil, err |
|
|
|
|
} |
|
|
|
|
@ -106,7 +106,7 @@ func (repo *Repository) CatFileBatchCheck(ctx context.Context) (WriteCloserError
@@ -106,7 +106,7 @@ func (repo *Repository) CatFileBatchCheck(ctx context.Context) (WriteCloserError
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.Debug("Opening temporary cat file batch-check for: %s", repo.Path) |
|
|
|
|
tempBatchCheck, err := repo.NewBatchCheck(ctx) |
|
|
|
|
tempBatchCheck, err := NewBatchCheck(ctx, repo.Path) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, nil, nil, err |
|
|
|
|
} |
|
|
|
|
|