Skip to content

Commit 14fbd26

Browse files
authored
fix number of delete go routines spawned (#457)
1 parent e56d1c4 commit 14fbd26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: pkg/tsdb/v3iotsdb.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func (a *V3ioAdapter) DeletePartitionsData(deleteParams *DeleteParams) error {
353353
}
354354
}
355355

356-
for i := 0; i <= a.cfg.Workers; i++ {
356+
for i := 0; i < a.cfg.Workers; i++ {
357357
go deleteObjectWorker(a.container, deleteParams, a.logger,
358358
fileToDeleteChan, deleteTerminationChan, onErrorTerminationChannel,
359359
aggrMask)
@@ -418,7 +418,6 @@ func (a *V3ioAdapter) DeletePartitionsData(deleteParams *DeleteParams) error {
418418
getItemsWG.Wait()
419419
select {
420420
case err = <-getItemsErrorChan:
421-
fmt.Println("got error", err)
422421
// Signal all other goroutines to quite
423422
for i := 0; i < goRoutinesNum; i++ {
424423
onErrorTerminationChannel <- struct{}{}

0 commit comments

Comments
 (0)