bogdanovich / siberite

Siberite is a simple, lightweight, leveldb backed message queue written in Go.
Other
589 stars 24 forks source link

Fix minor concurrency issues #41

Closed alyandon closed 7 years ago

alyandon commented 7 years ago

Fix a race condition that can occur when two (or more) clients attempt to create a queue with the same name at the same time.

Make sure that read unlocks are deferred after acquiring the read lock.

bogdanovich commented 7 years ago

Thank you @alyandon!