mezis / yarp

Yet Another Rubygems Proxy
68 stars 10 forks source link

Problem in file-cache with meta file (lost content with parallel writes to it) #14

Open nodkz opened 9 years ago

nodkz commented 9 years ago

Two time I lost content of meta file. When deploy in parallel 3 new servers. https://github.com/mezis/yarp/blob/master/yarp/cache/file.rb

In this file problem with parallel write to meta file. I do not how to fix it (because is too weak in mutexes). I see in code that you use it. May be you can fix it?