Stratoscale / osmosis

Osmosis replaces rsync, where the backend is a git-like object store. Its used for storing build products (and rootfses)
Apache License 2.0
7 stars 16 forks source link

Bugfix: Lock access to creating and removing directories since it's not thread-safe #3

Closed eliran-stratoscale closed 9 years ago

eliran-stratoscale commented 9 years ago

It seems that different threads use the _drafts object, so the _directoryExists boolean must be guarded. Otherwise, there are situations in which a thread thinks the directory exists (while it does not really exist), tries to write to it and gets a boost exception (this happens once every few times when running the UT).

shlomi-stratoscale commented 9 years ago

pushed after tiny fix.