Skip to content

Commit

Permalink
Changed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Dec 31, 2023
1 parent d4c9d5f commit 6ac5609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,16 @@ func (minioInstance *MinIO) uploadFile(reader io.Reader, tags map[string]string,
var targetSite string

fmt.Println(spaces)
fmt.Printf("CurrentIndex: %d\n", minioInstance.currentIndex)

if len(spaces) == minioInstance.currentIndex-1 {
for k, v := range spaces[minioInstance.robinIndex] {
if v > 0 {
fmt.Println("First case")
targetSite = k
minioInstance.robinIndex++
} else {
fmt.Println("Second case")
for i := minioInstance.robinIndex; i < len(spaces); i++ {
leftSpace := false
for k, v := range spaces[i] {
Expand Down

0 comments on commit 6ac5609

Please sign in to comment.