minio / dsync

A distributed sync package.
Apache License 2.0
400 stars 41 forks source link

Update 'i' only if lock grant from buffered channel #34

Closed krisis closed 7 years ago

krisis commented 7 years ago

Fixes a mistake with a previous fix (#33) to the problem of go-routines leak due to more receive operations on channel than send operations.

fwessels commented 7 years ago

Correct, this is the way it should be.